
/* Custom animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    opacity: 1;
    transform: translateY(0);
  }
  
  .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Stagger effect */
  .stagger-delay-1 { transition-delay: 0.1s; }
  .stagger-delay-2 { transition-delay: 0.2s; }
  .stagger-delay-3 { transition-delay: 0.3s; }
  .stagger-delay-4 { transition-delay: 0.4s; }
  .stagger-delay-5 { transition-delay: 0.5s; }
  
  /* Scrollbar styling */
  ::-webkit-scrollbar {
    width: 8px;
  }
  
  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }
  
  ::-webkit-scrollbar-thumb {
    background: #9b87f5;
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: #7E69AB;
  }
  
  /* Background gradients */
  .bg-purple-gradient {
    background-image: linear-gradient(90deg, hsla(277, 75%, 84%, 1) 0%, hsla(297, 50%, 51%, 1) 100%);
  }
  
  .bg-coral-gradient {
    background-image: linear-gradient(90deg, hsla(24, 100%, 83%, 1) 0%, hsla(341, 91%, 68%, 1) 100%);
  }
  
  .bg-blue-gradient {
    background-image: linear-gradient(90deg, hsla(186, 33%, 94%, 1) 0%, hsla(216, 41%, 79%, 1) 100%);
  }
  
  .bg-green-gradient {
    background-image: linear-gradient(90deg, hsla(139, 70%, 75%, 1) 0%, hsla(63, 90%, 76%, 1) 100%);
  }
  
  /* Color definitions */
  .text-purple {
    color: #7E69AB;
  }
  
  .text-teal {
    color: #5CC8BD;
  }
  
  .text-coral {
    color: #FF5E40;
  }
  
  .bg-purple-light {
    background-color: #9b87f5;
  }
  
  .bg-purple {
    background-color: #7E69AB;
  }
  
  .bg-purple-dark {
    background-color: #6E59A5;
  }
  
  .bg-teal-light {
    background-color: #7DDFD3;
  }
  
  .bg-teal {
    background-color: #5CC8BD;
  }
  
  .bg-teal-dark {
    background-color: #3DB9AE;
  }
  
  .bg-coral-light {
    background-color: #FF7E67;
  }
  
  .bg-coral {
    background-color: #FF5E40;
  }
  
  .bg-coral-dark {
    background-color: #FF3E17;
  }
  
  /* Hero carousel */
  .hero-slide {
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  }
  
  /* Product slider */
  .product-slider {
    position: relative;
  }
  
  .slider-item {
    transition: transform 0.3s ease;
  }
  
  .slider-item:hover {
    transform: translateY(-5px);
  }
  
  /* Brands slider */
  .brands-slider {
    animation: scroll 30s linear infinite;
  }
  
  @keyframes scroll {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(-50%);
    }
  }
  
  /* Custom animations */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes slideInLeft {
    from {
      opacity: 0;
      transform: translateX(-50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes slideInRight {
    from {
      opacity: 0;
      transform: translateX(50px);
    }
    to {
      opacity: 1;
      transform: translateX(0);
    }
  }
  
  @keyframes float {
    0%, 100% {
      transform: translateY(0);
    }
    50% {
      transform: translateY(-10px);
    }
  }
  
  /* Mobile menu */
  #mobile-menu {
    transition: all 0.3s ease-in-out;
  }
  .product-grid{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 10px;
}

.product-grid .product-details{
  padding: 20px;
}

.stars-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
    padding: 2px 10px;
    border-radius: 50px;
    background-color: #f0f0f06d;
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: bold;
  }
  
  /* Responsive fixes */
  @media (max-width: 640px) {
    .product-grid{
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 10px;
  }
  .product-grid .product-details{
    padding: 5px;
  }
  .product-grid .name{
    margin: 0;
  }
  .product-grid .price{
    margin: 0;
  }
  .product-grid .color{
    margin: 0;
    display: none;
  }
  .product-grid h3.text-lg{
    font-size: 14px;
  }
  .product-grid span.text-xl{
    font-size: 14px;
  }
  .stars-badge span.text-sm{
    font-size: 12px;
  }

  .banner-image{
    height: 320px;
  }
    .section-padding {
      padding-top: 3rem;
      padding-bottom: 3rem;
    }
    
    .section-title {
      font-size: 22px;
    }
    .section-subtitle {
      font-size: 16px;
    }
  }
  

  /* own */
  .product-image {
    width: 100%;
    height: 100%;
    /* aspect-ratio: 3 / 2; */
    object-fit: contain;
    transition: transform 500ms;
    object-position: center;
  }
  
  /* Hover effect when parent has class "group" */
  .group:hover .product-image {
    transform: scale(1.05);
  }

  /* product */

  :root {
    --color-primary: #6b46c1;      /* purple-light */
    --color-primary-hover: #553c9a;
    --color-muted: #f3f4f6;        /* light gray */
    --color-text: #1f2937;         /* gray-800 */
    --color-strike: #9ca3af;       /* gray-400 */
    --transition: 0.3s ease;
  }
  
  .product-card {
    display: block;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: box-shadow var(--transition);
    text-decoration: none;
    color: inherit;
  }
  .product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  }
  
  .product-card__media {
    position: relative;
    /* height: 16rem; */
    aspect-ratio: 4/5;
    overflow: hidden;
  }
  .product-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
  }
  .product-card:hover .product-card__image {
    transform: scale(1.05);
  }
  
  .product-card__badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--color-primary);
    color: #fff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
  }
  .product-card__badge--new {
    background: var(--color-primary);
  }
  
  .product-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
  }
  .product-card:hover .product-card__overlay {
    opacity: 1;
  }
  
  .product-card__btn {
    background: #fff;
    border: none;
    padding: 0.75rem;
    margin: 0 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(1rem);
    opacity: 0;
    transition:
      transform var(--transition),
      opacity var(--transition),
      background var(--transition),
      color var(--transition);
  }
  .product-card:hover .product-card__btn {
    transform: translateY(0);
    opacity: 1;
  }
  .product-card__btn:hover {
    background: var(--color-primary-hover);
    color: #fff;
  }
  
  .product-card__rating {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255,255,255,0.9);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
  }
  .product-card__star-icon {
    width: 1rem;
    height: 1rem;
    fill: #FFC107;
    margin-right: 0.25rem;
  }
  .product-card__rating-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
  }
  
  .product-card__body {
    padding: 1rem;
  }
  .product-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .product-card__prices {
    display: flex;
    align-items: center;
    /* margin-bottom: 1rem; */
  }
  .product-card__mrp {
    text-decoration: line-through;
    color: var(--color-strike);
    margin-right: 0.5rem;
    font-size: 0.875rem;
  }
  .product-card__price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
  }
  
  .product-card__add-to-cart {
    width: 100%;
    background: var(--color-muted);
    color: var(--color-text);
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background var(--transition), color var(--transition);
  }
  .product-card__add-to-cart:hover {
    background: var(--color-primary);
    color: #fff;
  }

  @media (max-width:660px) {
    .product-card__media {
      position: relative;
      /* height: 10rem; */
      overflow: hidden;
  }
  .product-card__add-to-cart {
    display: none;
  }
  .product-card__prices {
    margin-bottom:0;
  }
  .product-card__body {
    padding: 5px;
}
.product-card__title {
  font-size: 14px;
  margin:0;
}
.product-card__price {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
}
  }
  /* filters  */

  /* slider container */
.price-slider {
  position: relative;
  height: 0.5rem;
  margin-top: 0.5rem;
}
.price-slider input[type=range] {
  position: absolute;
  width: 100%;
  height: 0.5rem;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
}
.price-slider input[type=range]::-webkit-slider-thumb {
  pointer-events: all;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -0.25rem;
}
.slider-track, .slider-range {
  position: absolute;
  height: 100%;
  border-radius: 0.25rem;
}
.slider-track {
  width: 100%;
  background: #e5e7eb; /* gray-200 */
  top: 0;
  left: 0;
}
.slider-range {
  background: var(--color-primary);
  top: 0;
}
.mobile-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* Tailwind gap-2 = 0.5rem = 8px */
  background-color: #a449ff; /* or replace with actual hex */
  color: white;
  padding: 5px;
  border-radius: 0.5rem;
  font-size: 12px;
  width: 100%;
  width: fit-content;
  text-wrap: nowrap;
}

.desktop-filter-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem; /* Tailwind gap-2 = 0.5rem = 8px */
  background-color: #a449ff; /* or replace with actual hex */
  color: white;
  padding: 5px;
  border-radius: 0.5rem;
  font-size: 12px;
  width: 100%;
  width: fit-content;
  text-wrap: nowrap;
}
  

.background-brand-pattern {
  position: relative;
  z-index: 1;
}

.background-brand-pattern::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('../images/seemless.webp');
  background-repeat: repeat;
  /* background-size: ; */
  background-position: center;
  opacity: 0.1;
  z-index: -1;
  /* behind content */
  pointer-events: none;
}