.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 3rem 2rem;
  padding: 2rem 0;
}

/* Entrance Animation */
@keyframes dropFade {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.shop-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.aside {
  margin-top: 2em;
}

.shop-item {
  animation: dropFade 0.6s cubic-bezier(0.2, 1, 0.3, 1) backwards;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

/* Staggered animation */
.shop-item:nth-of-type(1) {
  animation-delay: 0.1s;
}
.shop-item:nth-of-type(2) {
  animation-delay: 0.2s;
}
.shop-item:nth-of-type(3) {
  animation-delay: 0.3s;
}
.shop-item:nth-of-type(4) {
  animation-delay: 0.4s;
}

.shop-img-container {
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  background-color: var(--bg-nav);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.shop-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.6s ease;
}

.shop-item:hover .shop-img-container {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.shop-item:hover .shop-img-container img {
  transform: scale(1.08);
}

.shop-item-info {
  text-align: left;
  padding: 0 0.5rem;
}

.shop-item-info h3 {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  font-weight: 700;
  transition: color 0.3s ease;
}

.shop-item:hover .shop-item-info h3 {
  color: var(--accent-pink);
}

.price {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
}

/* Quick Add Button */
.quick-add {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text-main);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 2;
}

.shop-item:hover .quick-add {
  opacity: 1;
  transform: translateY(0);
}

.quick-add:hover {
  background: var(--accent-pink);
  transform: scale(1.1) !important;
}

.quick-add svg {
  width: 20px;
  height: 20px;
}

/* Out of Stock State */
.out-of-stock {
  filter: grayscale(0.8);
  opacity: 0.7;
}

.stock-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: white;
  padding: 0.4rem 0.8rem;
  border-radius: 100px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.variant-popover {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 1rem;
    text-align: center;
}

.variant-popover.visible {
    opacity: 1;
    pointer-events: auto;
}

.variant-popover p {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.variant-dots-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.variant-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.variant-dot:hover {
    transform: scale(1.2);
}

.variant-dot.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    position: relative;
}

.variant-dot.disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background: #ff4d4d;
    transform: translate(-50%, -50%) rotate(45deg);
}

.close-popover {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-main);
}
