/**
 * Gadget Finder — Shared Frontend Product Styles
 *
 * Shared layout & component styles for product grids and cards.
 * All finder-tool styles are in gf-finder-shared.css.
 *
 * Dependencies: gf-finder-shared.css
 * Prefix: gf- (gadget-finder)
 * @since 6.0.0
 */

/* ====================================================================
   Product Grid (Comparison)
   ==================================================================== */
.gf-compare-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    max-width: var(--gf-max-width, 1000px);
    margin: 0 auto;
    padding: 1.25rem;
}

/* ====================================================================
   Product Card (Standalone embeds)
   ==================================================================== */
.gf-product-card {
    background: var(--gf-white, var(--mg-white));
    border: 1px solid var(--gf-gray-200, var(--mg-gray-200));
    border-radius: var(--gf-radius-md, 10px);
    padding: 1.25rem;
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.gf-product-card:hover {
    box-shadow: var(--mg-shadow-lg);
}

.gf-product-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--gf-radius-sm, 6px);
}

.gf-product-title {
    font-size: 1.05em;
    font-weight: 600;
    margin: 0.5rem 0 0.25rem;
    color: var(--gf-gray-900, var(--mg-gray-900));
}

.gf-product-brand {
    color: var(--gf-gray-500, var(--mg-gray-500));
    font-size: 0.85em;
}

.gf-product-price {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--gf-error, var(--mg-red-400));
}

/* ====================================================================
   Bridge: bf / cf → gf (backward compat)
   ==================================================================== */
.bf-container,
.cf-container {
    max-width: var(--gf-max-width, 1000px);
    margin: 0 auto;
    padding: 1.25rem;
}

.bf-loading,
.cf-loading {
    text-align: center;
    padding: 2.5rem;
    color: var(--gf-gray-400, var(--mg-gray-400));
}

.bf-compare-container,
.cf-compare-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.bf-product-card,
.cf-product-card {
    background: var(--gf-white, var(--mg-white));
    border: 1px solid var(--gf-gray-200, var(--mg-gray-200));
    border-radius: var(--gf-radius-md, 10px);
    padding: 1.25rem;
    transition: box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.bf-product-card:hover,
.cf-product-card:hover {
    box-shadow: var(--mg-shadow-lg);
}

.bf-product-image,
.cf-product-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--gf-radius-sm, 6px);
}

.bf-product-title,
.cf-product-title {
    font-size: 1.05em;
    font-weight: 600;
    margin: 0.5rem 0 0.25rem;
    color: var(--gf-gray-900, var(--mg-gray-900));
}

.bf-product-brand,
.cf-product-brand {
    color: var(--gf-gray-500, var(--mg-gray-500));
    font-size: 0.85em;
}

.bf-product-capacity,
.cf-product-wattage {
    color: var(--gf-gray-700, var(--mg-gray-700));
    font-weight: 500;
}

.bf-product-price,
.cf-product-price {
    font-size: 1.15em;
    font-weight: 700;
    color: var(--gf-error, var(--mg-red-400));
}

/* ===== Accessibility: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {

    .gf-product-card,
    .bf-product-card,
    .cf-product-card {
        transition: none;
    }
}