/* ==========================================================================
   NV5 Store Catalog - Overrides
   ========================================================================== */

/* Product card link overlay */
.product-card {
    position: relative;
}

.product-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.product-card .add-to-cart-btn {
    z-index: 2;
}

/* External link button on card */
.product-link-btn {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    z-index: 2;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.8rem;
}

.product-card:hover .product-link-btn {
    opacity: 1;
    transform: scale(1);
}

.product-link-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

/* Color dots on product card */
.product-colors {
    display: flex;
    gap: 3px;
    margin-top: 0.375rem;
    flex-wrap: wrap;
}

.product-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.product-colors-more {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding-left: 2px;
}

/* Modal: view on store button */
.btn-store-link {
    background: var(--accent-primary);
    color: white;
    text-decoration: none;
}

.btn-store-link:hover {
    background: var(--accent-secondary);
    color: white;
}

/* Shipping class badge */
.shipping-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: #f0fdf4;
    color: #166534;
}

/* Product images: contain so nothing gets cropped */
.product-image img {
    object-fit: contain;
}

/* Product meta stacking */
.product-meta {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.25rem !important;
}
