
/* Navigation button styling */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}
.next { right: 0; }

/* Responsive adjustments */
@media screen and (max-width: 768px) { /* Tablet */
    .prev, .next { padding: 8px; }
}
@media screen and (max-width: 480px) { /* Mobile */
    .prev, .next { display: none; } /* Optional: Hide buttons on mobile for touch swipe */
}

/* Bottom Nav Styling */
.mobile-bottom-nav {
    display: none; /* Hidden on desktop */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 2000; /* Stays above everything */
    padding: 8px 0;
}

/* Flexbox for even spacing */
@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        justify-content: space-around;
        align-items: center;
    }
}

.nav-item {
    text-align: center;
    text-decoration: none;
    color: #131921;
    font-size: 11px;
    flex: 1;
}

.nav-item .icon {
    font-size: 22px;
    display: block;
}

/* Cart badge similar to Amazon app */
.cart-badge {
    position: absolute;
    top: -5px;
    right: 25%;
    background-color: #febd69;
    color: #131921;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 50%;
}





.product-gallery {
  display: grid;
  /* THE MAGIC LINE: 
     - Creates as many columns as fit (auto-fit)
     - Each card is minimum 250px wide (minmax)
     - Cards expand to fill leftover space (1fr) */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  transition: transform 0.3s ease; /* Hover effect */
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}





/* Mobile: Force 2 columns */
.product-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
    gap: 10px;                             /* Smaller gap for mobile */
    padding: 10px;
}

/* Tablet: 3 columns */
@media (min-width: 600px) {
    .product-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

/* Desktop: 4 columns */
@media (min-width: 1024px) {
    .product-gallery {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        max-width: 1200px;
        margin: 0 auto;
    }
}