/* Force thumbnails to be small squares */
.img-mini {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover; /* Crops the image to fill the 60x60 square */
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
}

/* Hover state */
.img-mini:hover {
    border-color: #9ca3af;
}

/* Amazon-style Active Border */
.active-border {
    border-color: #1f2937 !important; /* Matches your text-dark color */
    border-width: 2px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Ensure the container doesn't grow */
.thumb-item {
    flex: 0 0 60px; /* Prevents the item from expanding */
}
.product-gallery{
    /*display: flex;*/
    aspect-ratio: 1 / 1;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 20px;
    /*overflow: hidden;*/
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    padding: 10px;
}
.img-mini.active-border {
    border-color: var(--accent-caramel) !important;
    opacity: 1 !important;
}
.img-mini:hover {
    opacity: 0.8;
}
.quick-add-btn:hover {
    background: var(--accent-gold) !important;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .product-gallery {
        max-width: 100% !important;
    }
}