/* ==========================================================================
   dc-shop.css — Shop semantic layer for the DojoConnect UI system
   Owned by plg_system_dojoconnect_ui. Consumed by com_shop site views.

   Only shop-specific primitives that have NO generic dc-* equivalent live
   here (product browse grid + product card). Order/payment states reuse the
   generic dc-badge--* modifiers via the component's _helpers.php. Built on
   dc-tokens.css variables — no hard-coded colours.
   ========================================================================== */

/* ---------- Product browse grid ---------- */
.dc-shop-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--dc-space-5, 20px);
}

/* ---------- Product card ---------- */
.dc-shop-product-card {
    display: block;
    background: var(--dc-surface, #ffffff);
    border: 1px solid var(--dc-border, #e2e8f0);
    border-radius: var(--dc-radius-lg, 12px);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.dc-shop-product-card:hover {
    border-color: var(--dc-brand-primary, #3b82f6);
    box-shadow: var(--dc-shadow-md, 0 4px 12px rgba(0, 0, 0, 0.08));
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.dc-shop-product-card__image {
    display: block;
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--dc-surface-sunken, #f8fafc);
    color: var(--dc-ink-400, #94a3b8);
}

.dc-shop-product-card__body {
    padding: var(--dc-space-4, 16px);
}

.dc-shop-product-card__title {
    font-size: var(--dc-text-sm, 0.9375rem);
    font-weight: 600;
    color: var(--dc-ink-900, #1e293b);
    margin: 0 0 var(--dc-space-2, 8px) 0;
}

.dc-shop-product-card__price {
    font-size: var(--dc-text-lg, 1.125rem);
    font-weight: 700;
    color: var(--dc-brand-primary, #2563eb);
}

.dc-shop-product-card__price-compare {
    font-size: var(--dc-text-xs, 0.8125rem);
    color: var(--dc-ink-400, #94a3b8);
    text-decoration: line-through;
    margin-left: var(--dc-space-2, 8px);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .dc-shop-product-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: var(--dc-space-3, 12px);
    }

    .dc-shop-product-card__image {
        height: 140px;
    }
}
