/* Custom styles for WAW E-commerce */

/* Set Poppins as default font */
*{
  font-family: 'Poppins', sans-serif;
}
body, html {
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden; /* Prevent horizontal overflow */
  width: 100%;
  max-width: 100%;
}
/* Custom button styles */
.btn {
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: #2563eb;
  color: white;
}

.btn-primary:hover {
  background-color: #1d4ed8;
}

.btn-secondary {
  background-color: #e5e7eb;
  color: #1f2937;
}

.btn-secondary:hover {
  background-color: #d1d5db;
}

/* Product card styles */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Form styles */
.form-input {
  display: block;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #374151;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Alert/message styles */
.alert {
  padding: 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #dcfce7;
  color: #166534;
  border-left: 4px solid #16a34a;
}

.alert-error {
  background-color: #fee2e2;
  color: #991b1b;
  border-left: 4px solid #dc2626;
}

.alert-info {
  background-color: #dbeafe;
  color: #1e40af;
  border-left: 4px solid #2563eb;
}

/* Responsive container for images */
.img-container {
  position: relative;
  overflow: hidden;
}

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

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

/* Page transitions */
.page-transition {
  animation: fadeIn 0.3s ease-in-out;
}

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

/* Dropdown improvements */
.dropdown-menu {
  transition: all 0.2s ease;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
}

.dropdown:hover .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

/* Alternative dropdown animation that works with Tailwind's group-hover */
.group:hover .dropdown-transition {
  animation: dropdownFadeIn 0.2s ease forwards;
}

@keyframes dropdownFadeIn {
  from {
      opacity: 0;
      transform: translateY(-10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
header{
  display: flex;
  padding: 16px 160px;
  align-items: center;
  gap: 32px;
  align-self: stretch;
}

.header-menu:hover, .dropdown-button:hover {
  color: #081944 !important;
}

.nav-logo{
  display: flex;
  width: 148px;
  height: 32px;
  padding: 0px 14px 2px 0px;
  align-items: center;
}

/* Mobile logo styles */
.nav-logo-mobile {
  display: flex;
  width: 180px;
  height: 40px;
  justify-content: center;
  align-items: center;
}

.nav-logo-mobile img {
  max-width: 100%;
  max-height: 100%;
}

/* ---------------  Footer -------------------------------------------------*/
footer{
  display: flex;
  padding: 104px 160px;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  background: var(--Main-Black, #081944);
  width: 100%;
  box-sizing: border-box;
}

footer .footer-info{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  align-content: flex-start;
  row-gap: 40px;
  align-self: stretch;
  flex-wrap: wrap;
  width: 100%;
}

footer .footer-logotext{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  max-width: 100%;
}

footer .footer-logotext img{
  display: flex;
  width: 135px;
  height: 30.627px;
  aspect-ratio: 135.00/30.63;
  padding-bottom: 1.373px;
  justify-content: flex-end;
  align-items: center;
}

footer .footer-logotext p{
  max-width: 384px;
  width: 100%;
  color: #CFCFCF;
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 170.5%; /* 23.87px */
}

footer .footer-nav{
  display: flex;
  width: 100%;
  max-width: 623px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

footer .footer-nav .title{
  color: var(--Main-White, #FFF);
  font-family: Poppins;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 16px;
}

footer .footer-nav .links{
  align-self: stretch;
  color: #CFCFCF;
  font-family: Poppins;
  font-size: 14px;
  font-style: normal;
  font-weight: 300;
  line-height: 32px; /* 228.571% */
}

footer .social-icons{
  display: flex;
  width: 173px;
  justify-content: space-between;
  align-items: flex-start;
}

/* Mobile bottom navigation styling */
@media (max-width: 768px) {
  /* Add padding to the bottom of the body to account for fixed navigation */
  body {
    padding-bottom: 70px;
  }
  
  /* Adjust footer padding on mobile */
  footer {
    padding: 60px 20px;
  }
  
  footer .footer-nav {
    flex-direction: column;
    gap: 30px;
  }
  
  footer .footer-logotext p {
    width: 100%;
  }
  
  header {
    padding: 16px 20px;
  }
  
  /* Fix mobile menu overflow */
  #mobile-menu {
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Improve filter container on mobile */
  #filter-container {
    width: 100%;
    box-sizing: border-box;
  }
  
  /* Make product cards responsive */
  .product-card {
    width: 100%;
    max-width: 100%;
  }
  
  /* Ensure container doesn't overflow */
  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }
  
  /* Ensure form inputs don't overflow */
  .form-input {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  /* Fix price range inputs in filter */
  .flex.space-x-2.items-center {
    flex-wrap: nowrap;
    max-width: 100%;
  }
}

/* Mobile navigation styles */
.fixed.bottom-0 {
  box-shadow: 0px -2px 10px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.fixed.bottom-0 .flex {
  width: 100%;
  box-sizing: border-box;
}

.fixed.bottom-0 a, .fixed.bottom-0 button {
  max-width: 25%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 0.5rem 0.25rem;
}

.fixed.bottom-0 span {
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

/* Style for active navigation item */
.text-blue-600 {
  color: #081944;
  font-weight: 500;
}

/* Filter dropdown styles */
.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

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

.wishlist-btn svg {
  transition: fill 0.3s ease, stroke 0.3s ease;
}

.wishlist-btn:hover svg {
  transform: scale(1.1);
}

.wishlist-btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

/* Loading spinner */
.wishlist-btn.loading svg {
  animation: pulse 1s ease-in-out infinite;
}

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


@media (max-width: 768px) {
  #filter-container {
    overflow: hidden;
    transition: all 0.3s ease-in-out;
  }
  
  #filter-container.hidden {
    display: none;
  }
}


/* Additional responsive styles */
        @media (max-width: 640px) {
            .container {
                padding-left: 1rem;
                padding-right: 1rem;
            }
        }
        
        /* Smooth scroll behavior */
        html {
            scroll-behavior: smooth;
        }
        
        /* Line clamp utility */
        .line-clamp-2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }



