/* WW Dealer Catalog — Frontend Styles */

/* Color variables output via PHP — see ww-dealer-catalog.php */

/* ── Grid ───────────────────────────────────────────────────── */
.ww-dc-grid { display: grid; gap: 24px; margin: 24px 0; }
.ww-dc-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ww-dc-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ww-dc-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) {
    .ww-dc-grid-cols-3, .ww-dc-grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .ww-dc-grid, .ww-dc-grid-cols-2, .ww-dc-grid-cols-3, .ww-dc-grid-cols-4 { grid-template-columns: 1fr; }
}

/* ── Card — entire card is a link ───────────────────────────── */
a.ww-dc-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #e5e5e5; border-radius: 6px;
    overflow: hidden; transition: box-shadow 0.2s ease, transform 0.15s ease;
    text-decoration: none; color: inherit; cursor: pointer;
}
a.ww-dc-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.13);
    transform: translateY(-2px);
    text-decoration: none; color: inherit;
}

/* ── Image ──────────────────────────────────────────────────── */
.ww-dc-card-image {
    background: #f7f7f7; text-align: center; padding: 16px;
    height: 200px; display: flex; align-items: center;
    justify-content: center; overflow: hidden;
}
.ww-dc-card-image img { max-width: 100%; max-height: 170px; object-fit: contain; display: block; }
.ww-dc-card-no-image { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: #bbb; }

/* ── Body ───────────────────────────────────────────────────── */
.ww-dc-card-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.ww-dc-card-brand { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #999; margin-bottom: 5px; display: block; }
.ww-dc-card-title { font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 5px; color: #1a1a1a; }
.ww-dc-card-model { font-size: 11px; color: #bbb; margin: 0 0 8px; }
.ww-dc-card-excerpt { font-size: 12px; color: #666; line-height: 1.5; margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Highlights ─────────────────────────────────────────────── */
.ww-dc-card-highlights { list-style: none; margin: 0 0 12px; padding: 0; background: #f9f9f9; border-radius: 4px; overflow: hidden; }
.ww-dc-card-highlights li { display: flex; justify-content: space-between; padding: 5px 10px; font-size: 11px; border-bottom: 1px solid #efefef; }
.ww-dc-card-highlights li:last-child { border-bottom: none; }
.ww-dc-hl-label { color: #888; }
.ww-dc-hl-value { font-weight: 600; color: #222; }

/* ── Footer ─────────────────────────────────────────────────── */
.ww-dc-card-footer { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ww-dc-card-price { font-size: 18px; font-weight: 700; color: #222; flex: 1 0 100%; }
.ww-dc-card-btn {
    display: inline-block; padding: 8px 18px; border-radius: 4px;
    font-size: 13px; font-weight: 600;
    background: var(--ww-color-a); color: #fff;
    text-decoration: none; transition: background 0.15s;
    pointer-events: none;
}
a.ww-dc-card:hover .ww-dc-card-btn { background: var(--ww-color-c); }

/* ── Empty ──────────────────────────────────────────────────── */
.ww-dc-empty { color: #888; font-style: italic; padding: 24px 0; }

/* ── Price display ──────────────────────────────────────────── */
.ww-dc-card-price { flex: 1 0 100%; line-height: 1.2; }
.ww-price-regular { font-size: 18px; font-weight: 700; color: #222; }
.ww-price-promo   { font-size: 20px; font-weight: 800; color: #cc0000; }
.ww-price-was     { font-size: 13px; font-weight: 500; color: #999; text-decoration: line-through; margin-left: 6px; }

/* Single product page price */
.ww-ps-price-wrap { margin-bottom: 18px; }
.ww-ps-price-wrap .ww-price-promo  { font-size: 32px; }
.ww-ps-price-wrap .ww-price-was    { font-size: 16px; }
.ww-ps-price-wrap .ww-price-regular { font-size: 30px; font-weight: 800; color: #1a1a1a; }

/* Brand band CSS moved to ww-james-tools/assets/css/mower-tool.css */
