From 398a4cf79d5c489686be5905cc071f5c7daf90ea Mon Sep 17 00:00:00 2001 From: aserrador Date: Thu, 28 May 2026 23:10:27 -0500 Subject: [PATCH] refactor: reduce product card size by 25-30% (aggressive optimization) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TEMPLATE CHANGES: - Reduce image max-height: 180px → 140px - Reduce padding: pa-3 → pa-2 (12px → 8px) - Reduce title size: text-subtitle-1 → text-subtitle-2 - Reduce margins: mb-2 → mb-1 throughout - Reduce chip size: small → x-small - Simplify footer padding: pa-2 pb-3 → pa-2 CSS BASE CHANGES: - Image container height: 180px → 140px (-22%) - Product name font: 0.95rem → 0.85rem, min-height: 2.5rem → 2rem - Price label font: 0.65rem → 0.6rem - Price value font: 1.1rem → 0.9rem (-18%) - Price chip: height 26px → 22px, padding 12px → 10px, font 0.9rem → 0.75rem - Quantity input: 65px → 55px, font 0.95rem → 0.85rem, min-height 32px → 28px - Section gaps: 4px → 2px, row gaps: 2px → 1px RESPONSIVE BREAKPOINTS (all reduced ~25-30%): - Mobile XS (<375px): 160px → 130px - Mobile (375-559px): 170px → 140px - Tablet (560-959px): 190px → 150px - Desktop (960-1279px): 200px → 160px - Desktop L (1280-1919px): 220px → 170px - Desktop XL (≥1920px): 240px → 180px RESULT: Cards are now 25-30% smaller maintaining proportions across all devices --- src/components/catalog/Card.vue | 198 ++++++++++++++++---------------- 1 file changed, 99 insertions(+), 99 deletions(-) diff --git a/src/components/catalog/Card.vue b/src/components/catalog/Card.vue index 960c678..d80f7f1 100644 --- a/src/components/catalog/Card.vue +++ b/src/components/catalog/Card.vue @@ -7,7 +7,7 @@ :alt="product.name" class="product-img" cover - max-height="180" + max-height="140" >