/* ============================================================
   PRODUCTS.CSS — Polished Product Cards + Detail
   Cards: clickable anchor, image ratio, price hierarchy,
   seller/availability/unit, hover/focus, mobile layout
   Tokens: var(--*) only, IranSansX, RTL
   ============================================================ */
.products-section { background: var(--surface-raised); padding-block: var(--space-16); }
.products-filter-bar { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-8); }
.filter-chip { padding: var(--space-2) var(--space-4); border-radius: var(--radius-full); font-size: var(--text-sm); font-weight: var(--font-weight-medium); border: 1.5px solid var(--border-strong); background: var(--surface-raised); color: var(--text-muted); cursor: pointer; transition: all var(--transition-fast); white-space: nowrap; }
.filter-chip:hover, .filter-chip.active { border-color: var(--color-primary); color: var(--color-primary); background: var(--brand-50); }
.filter-chip:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.products-section .grid-auto { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
@media (max-width: 768px) { .products-section .grid-auto { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--space-3); } }
@media (max-width: 480px) { .products-section .grid-auto { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; } }
.product-card { background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base); }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--brand-200); }
.product-card:focus-within { border-color: var(--brand-300); box-shadow: var(--shadow-md), 0 0 0 3px rgba(46,142,46,0.12); }
.product-card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.product-card-link:focus { outline: none; }
.product-card-link:focus-visible { outline: none; }
.product-card-link:focus-visible .product-card-name { color: var(--color-primary); }
.product-card-image { aspect-ratio: 4 / 3; min-height: 118px; background: linear-gradient(135deg, var(--neutral-100), var(--neutral-200)); display: flex; align-items: center; justify-content: center; font-size: 2.6rem; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.product-card-image::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 0%, rgba(255,255,255,0.55), transparent 60%); pointer-events: none; }
.product-card-image > span { position: relative; z-index: 1; line-height: 1; }
@media (max-width: 768px) { .product-card-image { aspect-ratio: 1 / 0.92; min-height: 96px; font-size: 2.1rem; } }
.product-card-badges { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; gap: 4px; align-items: flex-end; z-index: 2; }
.product-card-badges .badge { font-size: 10px; padding: 2px 7px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.product-card-body { padding: 12px 12px 10px; flex: 1; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.product-card-name { font-size: 13.5px; font-weight: var(--font-weight-bold); color: var(--text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(13.5px * 1.4 * 2); word-break: break-word; }
.product-card-category { font-size: 11px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.product-card-category .cat-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-400); flex-shrink: 0; }
.product-card-desc { font-size: 11px; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.2em; }
.product-card-seller { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); margin-top: 2px; min-width: 0; }
.product-card-seller-avatar { width: 20px; height: 20px; border-radius: 50%; background: var(--brand-100); color: var(--brand-700); font-size: 10px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid var(--brand-200); }
.product-card-seller-name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-card-seller-loc { white-space: nowrap; font-size: 10px; }
.product-card-availability { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-muted); flex-wrap: wrap; }
.product-card-availability .availability-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-success); flex-shrink: 0; box-shadow: 0 0 0 3px rgba(30,126,52,0.12); }
.product-card-availability .availability-dot--out { background: var(--color-danger); box-shadow: 0 0 0 3px rgba(192,57,43,0.12); }
.product-card-availability .avail-pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: var(--radius-full); font-size: 10px; font-weight: 700; border: 1px solid var(--border); background: var(--surface-sunken); }
.product-card-availability .avail-pill--ok { border-color: rgba(30,126,52,0.18); background: var(--color-success-bg); color: var(--color-success); }
.product-card-availability .avail-pill--out { border-color: rgba(192,57,43,0.15); background: var(--color-danger-bg); color: var(--color-danger); }
.product-card-availability .rating-inline { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--color-warning); font-weight: 700; }
.product-card-availability .rating-count { color: var(--text-muted); font-weight: 400; font-size: 10px; }
.product-card-price-row { margin-top: 6px; padding-top: 9px; border-top: 1px dashed var(--border); display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.product-card-price { font-size: 16px; font-weight: var(--font-weight-bold); color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1; }
.product-card-price--accent { color: var(--brand-700); }
.product-card-price-unit { font-size: 11px; color: var(--text-muted); font-weight: var(--font-weight-medium); }
.product-card-price-meta { font-size: 10px; color: var(--text-faint); margin-inline-start: auto; white-space: nowrap; }
@media (max-width: 768px) { .product-card-price { font-size: 14.5px; } .product-card-name { font-size: 12.5px; min-height: calc(12.5px * 1.4 * 2); } }
.product-card-footer { padding: 8px 10px; border-top: 1px solid var(--border); display: flex; gap: 6px; align-items: center; background: var(--surface-sunken); }
.product-card-footer .btn { flex: 1 1 0; min-width: 0; }
.product-card-footer .btn--ghost { background: var(--surface-raised); border: 1px solid var(--border); color: var(--text); }
.product-card-footer .btn--ghost:hover { background: var(--neutral-100); border-color: var(--border-strong); }
.qty-stepper { display: flex; align-items: center; gap: 2px; background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-full); padding: 2px; flex: 1; min-width: 0; }
.qty-stepper button { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-sunken); color: var(--text); font-size: 14px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background var(--transition-fast), color var(--transition-fast); flex-shrink: 0; }
.qty-stepper button:hover { background: var(--brand-100); border-color: var(--brand-300); color: var(--brand-700); }
.qty-stepper input { width: 34px; text-align: center; border: none; background: transparent; font-family: var(--font-family); font-size: 13px; font-weight: var(--font-weight-bold); color: var(--text); outline: none; padding: 0; min-width: 0; }
.product-card .btn--cart { flex-shrink: 0; min-height: 30px; height: 30px; padding: 0 10px; font-size: 12px; }
[data-cart-badge] { position: relative; }
[data-cart-count] { position: absolute; top: -6px; left: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: var(--color-danger); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.cart-drawer { position: fixed; inset: 0; z-index: var(--z-overlay); visibility: hidden; pointer-events: none; transition: visibility 0s linear var(--motion-base); }
.cart-drawer.open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.cart-overlay { position: absolute; inset: 0; background: rgba(20,18,9,0.48); backdrop-filter: blur(2px); opacity: 0; transition: opacity var(--motion-fast) var(--motion-ease-out); }
.cart-drawer.open .cart-overlay { opacity: 1; }
.cart-panel { position: absolute; top: 0; left: 0; width: min(440px, 94vw); height: 100%; max-height: 100dvh; background: var(--surface-raised); box-shadow: var(--shadow-xl); display: flex; flex-direction: column; transform: translateX(-102%); transition: transform var(--motion-base) var(--motion-ease-out); }
.cart-drawer.open .cart-panel { transform: translateX(0); }
@keyframes cart-slide { from { transform: translateX(-100%); } to { transform: translateX(0); } }
.cart-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-raised), var(--surface-sunken)); }
.cart-panel-heading { min-width: 0; }
.cart-eyebrow { display: block; margin-bottom: 4px; color: var(--text-faint); font-size: 10px; font-weight: 700; letter-spacing: 0.06em; }
.cart-panel-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 800; line-height: 1.4; }
.cart-count-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--brand-100); color: var(--brand-700); font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-panel-close { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-sunken); color: var(--text-muted); cursor: pointer; transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast); }
.cart-panel-close:hover { background: var(--brand-50); color: var(--brand-700); transform: rotate(90deg); }
.cart-items { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-sunken); scrollbar-width: thin; }
.cart-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 56px 24px; color: var(--text-muted); }
.cart-empty-icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 4px; border-radius: 20px; background: var(--brand-50); color: var(--brand-600); }
.cart-empty-title { color: var(--text); font-size: 14px; font-weight: 800; }
.cart-empty-desc { max-width: 230px; margin: 0; font-size: 12px; line-height: 1.9; }
.cart-empty .btn { margin-top: 6px; }
.cart-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-raised); box-shadow: 0 1px 0 rgba(35,31,24,0.03); }
.cart-item-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-sunken); color: var(--brand-700); font-size: 1.5rem; flex-shrink: 0; }
.cart-item-icon svg { width: 20px; height: 20px; }
.cart-item-body { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.cart-item-top { display: flex; align-items: flex-start; gap: 6px; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name { margin: 0; font-size: 13px; font-weight: 800; line-height: 1.55; overflow-wrap: anywhere; }
.cart-item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; margin-top: 3px; color: var(--text-muted); font-size: 11px; line-height: 1.7; }
.cart-item-variant { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; background: var(--surface-sunken); border: 1px solid var(--border); color: var(--text-muted); font-size: 10px; font-weight: 600; }
.cart-price-agreed { color: var(--brand-700); font-weight: 700; }
.cart-item-remove { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; border: 1px solid transparent; background: transparent; color: var(--text-faint); cursor: pointer; transition: background var(--transition-fast), color var(--transition-fast); }
.cart-item-remove:hover { background: var(--surface-sunken); color: var(--color-danger); }
.cart-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.cart-item-qty { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface-sunken); }
.cart-item-qty .qty-btn { display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-raised); color: var(--text); cursor: pointer; font-size: 14px; line-height: 1; transition: background var(--transition-fast), color var(--transition-fast); }
.cart-item-qty .qty-btn:hover { background: var(--brand-100); color: var(--brand-700); }
.cart-item-qty .qty-val { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 44px; padding: 0 2px; color: var(--text); font-size: 12px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cart-item-qty .qty-unit { color: var(--text-muted); font-size: 9px; font-weight: 600; line-height: 1.3; }
.cart-item-price { color: var(--brand-700); font-size: 13px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cart-item-price small { color: var(--text-muted); font-size: 10px; font-weight: 600; }
.cart-panel-foot { display: flex; flex-direction: column; gap: 8px; padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); background: var(--surface-raised); }
.cart-total-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.cart-total-row strong { color: var(--brand-700); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cart-summary-note { margin: 0; color: var(--text-muted); font-size: 10.5px; line-height: 1.8; }
.cart-panel-foot .btn { min-height: 44px; }
.cart-panel-foot .cart-continue { min-height: 38px; font-size: 12px; }
.cart-checkout.is-disabled { opacity: 0.55; cursor: not-allowed; }
[data-cart-count][hidden]{display:none !important;}
@media (max-width: 480px) {
  .cart-panel { width: 100%; }
  .cart-item-qty .qty-btn { width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .cart-overlay, .cart-panel, .cart-panel-close { transition: none !important; }
  .cart-drawer.open .cart-panel { transform: none; }
}
/* ── Product detail ── */
.breadcrumb { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12px; color:var(--text-muted); margin-bottom:14px; }
.breadcrumb a { color:var(--text-muted); }
.breadcrumb a:hover { color:var(--color-primary); }
.breadcrumb-sep { opacity:0.35; }
.product-detail { display:grid; grid-template-columns: 1.08fr 0.92fr; gap:22px; align-items:start; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }
.pd-gallery { background:var(--surface-raised); border:1px solid var(--border); border-radius:16px; overflow:hidden; }
.pd-main-image { aspect-ratio: 4 / 2.9; min-height: 300px; max-height: 420px; background: linear-gradient(135deg, #f8f7f4, #e8ddd0); display:flex; align-items:center; justify-content:center; font-size:4.4rem; position:relative; overflow:hidden; }
.pd-main-image::after { content:""; position:absolute; inset:0; background: radial-gradient(ellipse at 28% 6%, rgba(255,255,255,0.5), transparent 58%); pointer-events:none; }
.pd-thumbs { display:flex; gap:8px; padding:10px; overflow-x:auto; border-top:1px solid var(--border); background:var(--surface-sunken); scrollbar-width: thin; }
.pd-thumb { width:64px; height:64px; border-radius:10px; border:1.5px solid var(--border); background:var(--surface-raised); display:flex; align-items:center; justify-content:center; font-size:1.4rem; flex-shrink:0; cursor:pointer; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.pd-thumb:hover { border-color: var(--brand-300); }
.pd-thumb.is-active { border-color:var(--brand-400); box-shadow:0 0 0 3px var(--brand-100); }
.pd-thumb:focus-visible { outline: 2px solid var(--brand-400); outline-offset: 1px; }
.pd-info { display:flex; flex-direction:column; gap:12px; min-width:0; }
.pd-title { font-size:22px; font-weight:800; line-height:1.3; word-break: break-word; }
.pd-meta-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:12px; color:var(--text-muted); }
.pd-rating { display:inline-flex; align-items:center; gap:6px; background:var(--surface-sunken); border:1px solid var(--border); padding:4px 10px; border-radius:999px; font-weight:700; color:var(--text); }
.pd-price-box { background:var(--surface-sunken); border:1px solid var(--border); border-radius:12px; padding:14px; display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; }
.pd-price { font-size:22px; font-weight:800; font-variant-numeric:tabular-nums; letter-spacing:-0.02em; }
.pd-price small { font-size:12px; font-weight:600; color:var(--text-muted); }
.pd-options { display:flex; flex-wrap:wrap; gap:8px; }
.pd-option { padding:6px 12px; border-radius:999px; border:1px solid var(--border-strong); background:var(--surface-raised); font-size:13px; cursor:pointer; }
.pd-option.is-active { border-color:var(--brand-400); background:var(--brand-50); color:var(--brand-700); font-weight:700; }
.pd-cta-row { display:flex; gap:8px; flex-wrap:wrap; }
.pd-cta-row .btn { flex:1 1 160px; }
.pd-section { background:var(--surface-raised); border:1px solid var(--border); border-radius:14px; padding:16px; }
.pd-section h3 { font-size:14px; font-weight:800; margin-bottom:8px; }
.pd-specs { display:grid; grid-template-columns:1fr 1fr; gap:8px; font-size:13px; }
@media (max-width: 560px) { .pd-specs { grid-template-columns:1fr; } }
.pd-spec { display:flex; justify-content:space-between; gap:8px; padding:8px 10px; background:var(--surface-sunken); border:1px solid var(--border); border-radius:8px; }
.pd-spec dt { color:var(--text-muted); }
.pd-spec dd { font-weight:700; }
.pd-related { display:grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap:12px; }
@media (max-width: 600px){ .pd-related{ grid-template-columns: repeat(2, minmax(0,1fr)); gap:10px; } }
.pd-features { display:grid; grid-template-columns: 1fr 1fr; gap:8px; }
@media (max-width: 600px) { .pd-features { grid-template-columns: 1fr; } }
.pd-feature { display:flex; gap:10px; align-items:flex-start; background:var(--surface-raised); border:1px solid var(--border); border-radius:10px; padding:10px 12px; }
.pd-feature-icon { width:28px; height:28px; min-width:28px; border-radius:50%; background:var(--brand-50); border:1px solid #c8e0c8; display:flex; align-items:center; justify-content:center; font-size:13px; color:var(--brand-700); }
.pd-feature-title { font-size:12px; font-weight:800; }
.pd-feature-desc { font-size:11px; color:var(--text-muted); line-height:1.6; }
.pd-models { display:grid; grid-template-columns: 1fr 1fr; gap:8px; }
@media (max-width: 560px) { .pd-models { grid-template-columns: 1fr; } }
.pd-model { text-align:right; padding:10px 12px; border-radius:10px; border:1.5px solid var(--border-strong); background:var(--surface-raised); cursor:pointer; transition:border-color 120ms, background 120ms; }
.pd-model.is-active { border-color:var(--brand-400); background:var(--brand-50); }
.pd-model-name { font-size:13px; font-weight:800; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.pd-model-meta { font-size:11px; color:var(--text-muted); margin-top:2px; font-variant-numeric:tabular-nums; }
.pd-model-stock { font-size:11px; font-weight:700; margin-top:4px; }
.pd-model-stock.is-ok { color:var(--color-success); }
.pd-model-stock.is-warn { color:var(--color-warning); }
.pd-seller-card { display:flex; align-items:center; gap:12px; padding:12px 14px; background:var(--surface-sunken); border:1px solid var(--border); border-radius:12px; flex-wrap: wrap; }
.pd-seller-avatar { width:42px; height:42px; border-radius:50%; background:var(--brand-100); color:var(--brand-700); font-weight:800; font-size:16px; display:flex; align-items:center; justify-content:center; border:1px solid var(--brand-200); flex-shrink: 0; }
.pd-seller-name { font-size:13px; font-weight:800; color:var(--text); }
.pd-seller-loc { font-size:11px; color:var(--text-muted); }
.pd-seller-meta { display:flex; flex-wrap: wrap; gap:6px; align-items:center; margin-top:4px; }
.pd-pack-chip { display:inline-flex; align-items:center; gap:6px; font-size:11px; background:var(--surface-raised); border:1px solid var(--border); padding:5px 9px; border-radius:999px; }
.pd-action-row { display:flex; gap:8px; flex-wrap:wrap; }
.pd-action-row .btn { flex: 1 1 140px; }
.pd-save-btn.is-saved { background: var(--color-warning-bg); border-color: rgba(198,124,0,0.2); color: var(--color-warning); }
.pd-related .product-card-image { aspect-ratio: 4 / 2.8; min-height: 96px; font-size: 2rem; }
.pd-related .product-card-body { padding: 10px 11px 9px; }
.pd-pack-date { font-size: 11px; color: var(--text-muted); }
.pd-response-time { display:inline-flex; align-items:center; gap:6px; font-size:11px; background:var(--surface-raised); border:1px solid var(--border); padding:6px 10px; border-radius:999px; }
.pd-demo-note { font-size:11px; color:var(--text-faint); line-height:1.7; }
/* ── Reviews / Share extensions ── */
.pd-share-btn.is-done { background: var(--color-success-bg); border-color: rgba(30,126,52,0.18); color: var(--color-success); }
.pd-reviews-list { display:grid; gap:8px; }
.pd-review { background: var(--surface-raised); border:1px solid var(--border); border-radius:12px; padding:12px 14px; }
.pd-review-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.pd-review-author { font-size:13px; font-weight:800; color:var(--text); }
.pd-review-stars { color: var(--color-warning); font-size:13px; letter-spacing:1px; }
.pd-review-date { font-size:11px; color:var(--text-muted); margin-inline-start:auto; white-space:nowrap; }
.pd-review-text { margin-top:8px; line-height:1.85; font-size:13px; color:var(--text); }
.pd-review-form { background: var(--surface-sunken); border:1px dashed var(--border-strong); border-radius:14px; padding:16px; }
.pd-star-input { display:flex; gap:4px; align-items:center; }
.pd-star-input button { width:34px; height:34px; border-radius:8px; border:1px solid var(--border); background:var(--surface-raised); font-size:18px; line-height:1; cursor:pointer; transition: background var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast); }
.pd-star-input button.is-active { background: var(--color-warning-bg); border-color: rgba(198,124,0,0.25); color: var(--color-warning); }
.pd-star-input button:hover { transform: translateY(-1px); border-color: var(--brand-300); }
.pd-star-input button:focus-visible { outline:2px solid var(--brand-400); outline-offset:1px; }
.pd-specs-table { width:100%; border-collapse:collapse; font-size:13px; }
.pd-specs-table th, .pd-specs-table td { text-align:right; padding:8px 10px; border-bottom:1px solid var(--border); }
.pd-specs-table th { color:var(--text-muted); font-weight:700; font-size:11px; width:38%; background: var(--surface-sunken); }
/* ── ENRICH: sticky buybox / tiers / specs enriched / shipping-return / nutrition / faq-acc / reviews ── */
.pd-layout{display:grid;grid-template-columns:1.08fr .92fr;gap:18px;align-items:start}
@media(max-width:900px){.pd-layout{grid-template-columns:1fr}}
.pd-buybox{position:sticky;top:16px;background:var(--surface-raised);border:1.5px solid var(--brand-200);border-radius:16px;padding:14px;box-shadow:var(--shadow-sm);z-index:2}
.pd-buybox-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.pd-buybox-price{font-size:24px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums;line-height:1}
.pd-buybox-price small{font-size:11px;color:var(--text-muted);font-weight:600}
.pd-buybox-meta{font-size:11px;color:var(--text-muted);line-height:1.7;margin-top:6px}
.pd-buybox-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.pd-buybox-actions .btn{flex:1 1 140px}
.pd-qty{display:inline-flex;align-items:center;gap:6px;background:var(--surface-sunken);border:1px solid var(--border);border-radius:999px;padding:3px}
.pd-qty button{width:28px;height:28px;border-radius:50%;border:1px solid var(--border);background:var(--surface-raised);cursor:pointer;font-size:15px;line-height:1;display:flex;align-items:center;justify-content:center}
.pd-qty button:hover{background:var(--brand-50);border-color:var(--brand-300)}
.pd-qty input{width:40px;text-align:center;border:0;background:transparent;font-weight:800;font-family:var(--font-family);font-size:13px}
.pd-tiers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
@media(max-width:560px){.pd-tiers{grid-template-columns:1fr}}
.pd-tier{border:1.5px solid var(--border);border-radius:12px;padding:10px 12px;background:var(--surface-raised);text-align:center;position:relative;transition:border-color 160ms,transform 160ms}
.pd-tier:hover{border-color:var(--brand-300);transform:translateY(-1px)}
.pd-tier.is-best{border-color:var(--brand-400);background:var(--brand-50);box-shadow:0 4px 12px rgba(46,142,46,.10)}
.pd-tier-k{font-size:12px;font-weight:800;color:var(--text)}
.pd-tier-price{font-size:15px;font-weight:800;margin-top:4px;font-variant-numeric:tabular-nums}
.pd-tier-unit{font-size:10px;color:var(--text-muted)}
.pd-tier-save{margin-top:6px;display:inline-flex;padding:2px 7px;border-radius:999px;background:var(--color-success-bg);color:var(--color-success);font-size:10px;font-weight:700;border:1px solid rgba(30,126,52,.15)}
.pd-specs-aug{width:100%;border-collapse:collapse;font-size:13px;background:var(--surface-raised);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.pd-specs-aug th,.pd-specs-aug td{text-align:right;padding:9px 10px;border-bottom:1px solid var(--border)}
.pd-specs-aug th{width:36%;background:var(--surface-sunken);color:var(--text-muted);font-size:11px;font-weight:700}
.pd-specs-aug tr:last-child th,.pd-specs-aug tr:last-child td{border-bottom:0}
.pd-shipret{display:grid;grid-template-columns:1fr 1fr;gap:12px}
@media(max-width:700px){.pd-shipret{grid-template-columns:1fr}}
.pd-shipret-box{background:var(--surface-sunken);border:1px solid var(--border);border-radius:12px;padding:14px}
.pd-shipret-box h4{font-size:13px;font-weight:800;margin-bottom:8px;display:flex;align-items:center;gap:6px}
.pd-shipret-box ul{list-style:none;padding:0;margin:0;display:grid;gap:6px;font-size:12px;line-height:1.7;color:var(--text-muted)}
.pd-shipret-box li{display:flex;gap:6px;align-items:flex-start}
.pd-shipret-box li::before{content:"•";color:var(--brand-500);font-weight:800;margin-top:1px}
.pd-nutri{width:100%;border-collapse:collapse;font-size:13px;background:var(--surface-raised);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.pd-nutri th,.pd-nutri td{text-align:center;padding:8px;border-bottom:1px solid var(--border)}
.pd-nutri th{background:var(--surface-sunken);font-size:11px;color:var(--text-muted)}
.pd-nutri td{font-weight:700;font-variant-numeric:tabular-nums}
.pd-how{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
@media(max-width:700px){.pd-how{grid-template-columns:1fr 1fr}}
@media(max-width:420px){.pd-how{grid-template-columns:1fr}}
.pd-how-step{background:var(--surface-raised);border:1px solid var(--border);border-radius:12px;padding:14px;text-align:center}
.pd-how-num{width:28px;height:28px;border-radius:50%;background:var(--brand-600);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:800;font-size:13px}
.pd-how-title{font-size:12px;font-weight:800;margin-top:8px}
.pd-how-desc{font-size:11px;color:var(--text-muted);line-height:1.6;margin-top:4px}
.pd-faq{border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--surface-raised)}
.pd-faq details{border-bottom:1px solid var(--border)}
.pd-faq details:last-child{border-bottom:0}
.pd-faq summary{list-style:none;padding:12px 14px;cursor:pointer;font-weight:700;font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.pd-faq summary::-webkit-details-marker{display:none}
.pd-faq summary::after{content:"+";width:22px;height:22px;border-radius:50%;border:1px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:14px;color:var(--text-muted);flex-shrink:0}
.pd-faq details[open] summary::after{content:"−";background:var(--brand-50);border-color:var(--brand-200);color:var(--brand-700)}
.pd-faq .faq-a{padding:0 14px 12px;color:var(--text-muted);font-size:13px;line-height:1.85}
.pd-reviews-wrap{display:grid;gap:10px}
.pd-review{border:1px solid var(--border);border-radius:12px;padding:12px 14px;background:var(--surface-raised)}
.pd-review-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.pd-review-author{font-weight:800;font-size:13px}
.pd-review-date{font-size:11px;color:var(--text-muted);margin-inline-start:auto}
.pd-review-stars{color:var(--color-warning);letter-spacing:1px;font-size:13px}
.pd-review-text{margin-top:8px;line-height:1.85;font-size:13px}
.pd-review-form{border:1.5px dashed var(--border-strong);border-radius:14px;padding:16px;background:var(--surface-sunken)}
.pd-star-input{display:flex;gap:6px}
.pd-star-input button{width:36px;height:36px;border-radius:10px;border:1.5px solid var(--border);background:var(--surface-raised);font-size:18px;cursor:pointer;transition:all 120ms}
.pd-star-input button.is-active{background:var(--color-warning-bg);border-color:rgba(198,124,0,.25);color:var(--color-warning);transform:translateY(-1px)}
.pd-sticky-mobile{display:none}
@media(max-width:900px){
  .pd-buybox{position:static}
  .pd-sticky-mobile{display:flex;position:fixed;bottom:0;left:0;right:0;background:var(--surface-raised);border-top:1px solid var(--border);padding:10px 12px;gap:8px;align-items:center;z-index:40;box-shadow:0 -6px 18px rgba(0,0,0,.08)}
  .pd-sticky-mobile .btn{flex:1}
  body.has-sticky-mobile{padding-bottom:72px}
}

/* ── Minimal refresh (compact brief) ── */
.product-card{border-radius:20px;border-color:#ece7e0;box-shadow:0 1px 0 rgba(35,31,24,.04)}
.product-card:hover{border-color:var(--brand-200);box-shadow:0 8px 24px rgba(35,31,24,.07);transform:translateY(-2px)}
.product-card-image{aspect-ratio:1.35 / 1;min-height:96px;background:linear-gradient(180deg,#faf7f1 0%,#f3efe8 100%);font-size:2.2rem;border-bottom:1px solid #ece7e0}
.product-card-image .product-card-badges{position:absolute;inset:10px 10px auto auto;display:flex;gap:6px}
.product-card-body{padding:13px 13px 10px;gap:4px}
.product-card-name{font-size:13px;font-weight:800;letter-spacing:-.01em}
.product-card-meta{font-size:11.5px;color:var(--text-muted);opacity:.9}
.product-card-price-row{margin-top:6px;align-items:baseline;gap:6px}
.product-card-price{font-size:15.5px;font-weight:800;letter-spacing:-.02em}
.product-card-price-unit{font-size:11px;color:var(--text-muted)}
.product-card-footer{padding:10px 12px;background:var(--surface-raised);border-top:1px solid #f0ebe3;gap:8px}
.qty-stepper{border-radius:999px;border-color:#e8ddd0;background:#fcfaf7}
.qty-stepper button{width:28px;height:28px}
.qty-stepper input{font-size:12px}
.btn--cart{border-radius:999px;font-size:12px;padding:7px 12px;box-shadow:none}
.products-section .grid-auto{gap:14px}
@media(max-width:480px){.products-section .grid-auto{gap:10px}}

.products-section{background:#fffefc;padding-block:44px 36px;border-top:1px solid #ece7e0}
.products-section .section-header{max-width:640px;margin:0 auto 22px;text-align:center}
.products-section .section-header .section-title{font-size:clamp(18px,2.4vw,22px);letter-spacing:-.02em}
.products-section .section-header .section-desc{color:var(--text-muted);font-size:13px}
.products-filter-bar{justify-content:center;margin-bottom:20px;gap:6px}
.filter-chip{font-size:12px;padding:7px 12px;border-radius:999px;border:1.25px solid #e8ddd0;background:#fff;color:var(--text-muted)}
.filter-chip.active,.filter-chip:hover{border-color:var(--brand-600);color:var(--brand-700);background:#eef6ee}
.products-section .grid-auto{grid-template-columns:repeat(3,1fr);gap:16px}
@media(max-width:1100px){.products-section .grid-auto{grid-template-columns:repeat(2,1fr);gap:14px}}
@media(max-width:640px){.products-section .grid-auto{grid-template-columns:1fr;gap:12px}}
.product-card{border-radius:18px;border:1px solid #ece7e0;background:#fff;overflow:hidden;box-shadow:none;transition:border-color 160ms ease, box-shadow 160ms ease}
.product-card:hover{border-color:#d6c9b8;box-shadow:0 10px 28px rgba(35,31,24,.07);transform:none}
.product-card-image{aspect-ratio:1.6/1;min-height:88px;background:#faf7f1;display:flex;align-items:center;justify-content:center;font-size:2.15rem;border-bottom:1px solid #ece7e0;position:relative}
.product-card-image::after{display:none}
.product-card-badges{top:10px;right:10px}
.product-card-badges .badge{font-size:10px;padding:3px 8px;border-radius:999px;box-shadow:none;border:1px solid rgba(0,0,0,.06)}
.product-card-body{padding:12px 14px 12px;gap:5px}
.product-card-name{font-size:14px;font-weight:800;letter-spacing:-.015em;line-height:1.3}
.product-card-meta{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#7e7265;background:#faf7f1;border:1px solid #ece7e0;padding:3px 8px;border-radius:999px;align-self:flex-start;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-card-price-row{margin-top:8px;padding-top:10px;border-top:1px solid #f0ede6;display:flex;align-items:flex-end;gap:6px}
.product-card-price{font-size:19px;font-weight:800;letter-spacing:-.03em;color:var(--text)}
.product-card-price-unit{font-size:11px;color:var(--text-muted)}
.product-card-footer{padding:10px 12px;background:#fcfaf7;border-top:1px solid #f0ede6;gap:8px}
.qty-stepper{background:#fff;border-color:#ece7e0;border-radius:999px;padding:2px}
.qty-stepper button{width:26px;height:26px;border:0;background:#f3efe8;color:var(--text)}
.qty-stepper button:hover{background:#e8ddd0;color:var(--text)}
.qty-stepper input{font-size:12.5px;font-weight:800}
.btn--cart{border-radius:999px;font-size:12px;font-weight:800;padding:7px 14px;min-height:32px}

/* ── Products — compact distinct (Phase 5 final) ── */
.products-section{background:#fffefc;padding-block:40px 32px;border-top:1px solid #ece7e0}
.products-section .section-header{max-width:640px;margin:0 auto 18px;text-align:center}
.products-section .section-header .section-title{font-size:clamp(18px,2.4vw,22px);letter-spacing:-.02em}
.products-section .section-header .section-desc{color:var(--text-muted);font-size:13px}
.products-filter-bar{justify-content:center;margin-bottom:18px;gap:6px}
.filter-chip{font-size:12px;padding:7px 12px;border-radius:999px;border:1.25px solid #e8ddd0;background:#fff;color:var(--text-muted)}
.filter-chip.active,.filter-chip:hover{border-color:var(--brand-600);color:var(--brand-700);background:#eef6ee}
.products-section .grid-auto{grid-template-columns:repeat(4,1fr);gap:14px}
@media(max-width:1100px){.products-section .grid-auto{grid-template-columns:repeat(3,1fr);gap:12px}}
@media(max-width:760px){.products-section .grid-auto{grid-template-columns:repeat(2,1fr);gap:10px}}
@media(max-width:480px){.products-section .grid-auto{grid-template-columns:repeat(2,1fr);gap:8px}}
.product-card{border-radius:16px;border:1px solid #ece7e0;background:#fff;overflow:hidden;box-shadow:none;display:flex;flex-direction:column;transition:border-color 160ms ease,box-shadow 160ms ease}
.product-card:hover{border-color:#d6c9b8;box-shadow:0 8px 22px rgba(35,31,24,.07)}
.product-card-image{aspect-ratio:1.25/1;min-height:72px;max-height:96px;background:#faf7f1;display:flex;align-items:center;justify-content:center;font-size:1.9rem;border-bottom:1px solid #ece7e0;position:relative}
.product-card-image::after{display:none}
.product-card-badges{top:8px;right:8px;gap:4px}
.product-card-badges .badge{font-size:9.5px;padding:2px 7px;border-radius:999px;box-shadow:none;border:1px solid rgba(0,0,0,.06)}
.product-card-body{padding:10px 11px 8px;gap:3px;flex:1}
.product-card-name{font-size:12.5px;font-weight:800;letter-spacing:-.01em;line-height:1.3;min-height:calc(12.5px*1.3*2)}
.product-card-meta{font-size:10.5px;color:var(--text-muted);background:#faf7f1;border:1px solid #ece7e0;padding:2px 7px;border-radius:999px;align-self:flex-start}
.product-card-unit-hint{font-size:10px;color:#9d9080;line-height:1.4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.product-card-price-row{margin-top:6px;padding-top:8px;border-top:1px solid #f0ede6;display:flex;align-items:baseline;gap:5px;flex-wrap:wrap}
.product-card-price{font-size:15px;font-weight:800;letter-spacing:-.02em;color:var(--text)}
.product-card-price-unit{font-size:10.5px;color:var(--text-muted)}
.product-card-footer{padding:8px 8px;background:#fcfaf7;border-top:1px solid #f0ede6;display:flex;align-items:center;gap:6px}
.qty-stepper{flex:1;display:flex;align-items:center;gap:2px;background:#fff;border:1px solid #ece7e0;border-radius:999px;padding:2px;min-width:0}
.qty-stepper button{width:24px;height:24px;border-radius:50%;border:0;background:#f3efe8;color:var(--text);font-size:13px;flex-shrink:0}
.qty-stepper button:hover{background:#e8ddd0}
.qty-stepper input{width:28px;text-align:center;border:0;background:transparent;font-size:11.5px;font-weight:800;min-width:0}
.qty-stepper .qty-unit{font-size:9.5px;color:var(--text-muted);flex-shrink:0}
.product-card .btn--cart{width:32px;height:32px;min-height:32px;padding:0;border-radius:50%;font-size:13px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.products-section .btn--outline.btn--lg{border-radius:999px}

/* ── Products — SaaS dashboard minimal (spec) ── */
.products-section{background:#f6f5f3;padding-block:36px;border-top:1px solid #ece7e0;border-bottom:1px solid #ece7e0}
.products-section .grid-auto{grid-template-columns:repeat(4,1fr);gap:20px}
@media(max-width:1100px){.products-section .grid-auto{grid-template-columns:repeat(3,1fr);gap:16px}}
@media(max-width:760px){.products-section .grid-auto{grid-template-columns:repeat(2,1fr);gap:20px}}
.product-card{background:#fff;border:1px solid #ece7e0;border-radius:16px;overflow:hidden;box-shadow:none;display:flex;flex-direction:column}
.product-card:hover{box-shadow:0 10px 28px rgba(35,31,24,.08);border-color:#d6c9b8;transform:translateY(-1px)}
.product-card-image{aspect-ratio:1.15/1;min-height:88px;max-height:110px;background:#faf7f1;display:flex;align-items:center;justify-content:center;font-size:2rem;border-bottom:1px solid #ece7e0;border-radius:0}
.product-card-image::after{display:none}
.product-card-body{padding:12px 12px 8px;gap:4px}
.product-card-name{font-size:13px;font-weight:800}
.product-card-meta{font-size:11px;color:var(--text-muted);display:inline-flex;align-items:center;gap:4px}
.product-card-meta .verified-badge{width:14px;height:14px;border-radius:50%;background:var(--brand-600);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:9px;flex-shrink:0}
.product-card-price-row{margin-top:6px;padding-top:8px;border-top:1px solid #f0ede6;display:flex;align-items:baseline;gap:6px}
.product-card-price{font-size:15px;font-weight:800}
.product-card-price-unit{font-size:11px;color:var(--text-muted)}
.product-card-footer{padding:8px 10px;background:#fff;border-top:1px solid #f0ede6;display:flex;align-items:center;justify-content:space-between;gap:8px}
.product-card .btn--cart{width:36px;height:36px;min-height:36px;padding:0;border-radius:50%;font-size:14px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.products-view-all{color:var(--brand-700)}
.products-view-all:hover{color:var(--brand-800);text-decoration:underline}

/* ── PRODUCTS HOME — redesigned minimal flagship ── */
.products-section--home{background:#fffefc;border-top:1px solid #ece7e0;border-bottom:1px solid #ece7e0;padding-block:44px 40px}
.products-section--home .section-header{max-width:720px;margin:0 auto 20px;text-align:center}
.products-section--home .section-desc{font-size:13px;line-height:1.9}
.products-section--home .products-filter-bar{justify-content:center;margin-bottom:22px;gap:7px;flex-wrap:wrap}
.products-section--home .filter-chip{font-size:12.5px;padding:7px 13px;border-radius:999px;border:1.25px solid #e8ddd0;background:#fff;color:var(--text-muted)}
.products-section--home .filter-chip.active,.products-section--home .filter-chip:hover{border-color:var(--brand-600);color:var(--brand-700);background:#eef6ee}
.products-section--home .grid-auto{gap:18px}
.products-section--home .product-card--home{border-radius:18px;border:1px solid #ece7e0;background:#fff;overflow:hidden;display:flex;flex-direction:column;transition:border-color 160ms ease,box-shadow 160ms ease,transform 160ms ease}
.products-section--home .product-card--home:hover{border-color:#d6c9b8;box-shadow:0 14px 36px rgba(35,31,24,.08);transform:translateY(-2px)}
.products-section--home .product-card--home .product-card-image{aspect-ratio:1.35/1;min-height:88px;max-height:108px;background:linear-gradient(180deg,#faf7f1 0%,#f3efe8 100%);border-bottom:1px solid #ece7e0;display:flex;align-items:center;justify-content:center;position:relative}
.products-section--home .product-card--home .product-card-image::after{display:none}
.products-section--home .pc-icon{font-size:2rem;line-height:1}
.products-section--home .product-card-body{padding:12px 13px 10px;gap:6px;flex:1;display:flex;flex-direction:column}
.products-section--home .pc-cat-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:11px;color:var(--text-muted)}
.products-section--home .pc-cat{display:inline-flex;align-items:center;gap:5px;font-weight:700;color:var(--text-muted)}
.products-section--home .pc-wholesale-dot{width:7px;height:7px;border-radius:50%;background:var(--brand-500);flex-shrink:0;box-shadow:0 0 0 3px rgba(46,142,46,.12)}
.products-section--home .pc-rating{margin-inline-start:auto;display:inline-flex;align-items:center;gap:4px;white-space:nowrap}
.products-section--home .product-card-name{font-size:14px;font-weight:800;letter-spacing:-.015em;line-height:1.35}
.products-section--home .pc-short{font-size:11.5px;color:var(--text-muted);line-height:1.75;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.2em}
.products-section--home .pc-specs-mini{display:flex;flex-wrap:wrap;gap:6px;margin-top:2px}
.products-section--home .pc-chip{display:inline-flex;align-items:center;gap:4px;font-size:10px;font-weight:700;color:#5e5549;background:#faf7f1;border:1px solid #ece7e0;border-radius:999px;padding:3px 8px;max-width:100%;white-space:nowrap}
.products-section--home .pc-chip.is-grade{background:var(--brand-50);border-color:var(--brand-200);color:var(--brand-700)}
.products-section--home .pc-chip svg{flex-shrink:0;opacity:.75}
.products-section--home .product-card-price-row{margin-top:6px;padding-top:10px;border-top:1px dashed #ece7e0;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.products-section--home .product-card-price{font-size:17px;font-weight:800;letter-spacing:-.02em;color:var(--text)}
.products-section--home .product-card-price-unit{font-size:11px;color:var(--text-muted);font-weight:600}
.products-section--home .pc-tier-hint{font-size:10px;color:var(--brand-700);background:var(--brand-50);border:1px solid var(--brand-200);border-radius:999px;padding:2px 7px;font-weight:700;margin-inline-start:auto;white-space:nowrap}
.products-section--home .pc-foot-meta{font-size:10px;color:var(--text-faint);line-height:1.6;margin-top:2px}
.products-section--home .product-card-footer{padding:10px 12px 12px;background:#fcfaf7;border-top:1px solid #f0ede6;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.products-section--home .product-card-footer .btn--ghost{flex:0 0 auto;font-size:11.5px;height:32px;min-height:32px;padding:0 12px;border:1px solid var(--border);background:#fff;border-radius:999px;display:inline-flex;align-items:center;justify-content:center}
.products-section--home .product-card-footer .btn--ghost:hover{border-color:var(--brand-300);color:var(--brand-700);background:#eef6ee}
.products-section--home .qty-stepper{flex:1;min-width:0;background:#fff;border:1px solid #ece7e0;border-radius:999px;padding:3px;display:flex;align-items:center;gap:4px;height:36px}
.products-section--home .qty-stepper button{width:28px;height:28px;border-radius:50%;border:0;background:#f3efe8;color:var(--text);font-size:14px;flex-shrink:0;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background 140ms ease}
.products-section--home .qty-stepper button:hover{background:#e8ddd0}
.products-section--home .qty-stepper input{flex:1;min-width:0;width:32px;text-align:center;border:0;background:transparent;font-size:12.5px;font-weight:800}
.products-section--home .btn--cart{flex:1 1 100%;width:100%;height:40px;min-height:40px;padding:0 14px;border-radius:12px;font-size:13px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:8px;order:3;margin-top:2px}
.products-section--home .btn--cart svg{width:17px;height:17px;flex-shrink:0}
.products-section--home .btn--cart:active{transform:translateY(1px) scale(.99)}
@media(max-width:1100px){.products-section--home .grid-auto{grid-template-columns:repeat(3,1fr);gap:14px}}
@media(max-width:760px){.products-section--home .grid-auto{grid-template-columns:repeat(2,1fr);gap:10px}.products-section--home .product-card-name{font-size:13px}.products-section--home .product-card--home .product-card-image{min-height:76px}}
@media(max-width:480px){.products-section--home{padding-block:32px 28px}.products-section--home .grid-auto{grid-template-columns:repeat(2,1fr);gap:8px}.products-section--home .pc-short{-webkit-line-clamp:1}}

/* ── PRODUCT SINGLE — flagship detail page ── */
.pd-tabs{display:flex;gap:2px;flex-wrap:wrap;border-bottom:2px solid var(--border);margin-top:24px;overflow-x:auto;scrollbar-width:thin}
.pd-tab{padding:10px 14px;font-size:12.5px;font-weight:800;color:var(--text-muted);cursor:pointer;border:0;background:transparent;border-bottom:2.5px solid transparent;margin-bottom:-2px;white-space:nowrap;transition:color 120ms,border-color 120ms;font-family:var(--font-family)}
.pd-tab:hover{color:var(--text)}
.pd-tab.is-active{color:var(--brand-700);border-bottom-color:var(--brand-600)}
.pd-tab:focus-visible{outline:2px solid var(--brand-400);outline-offset:-2px}
.pd-panel{display:none}
.pd-panel.is-active{display:block}
.pd-panel-inner{padding-block:16px 4px;display:grid;gap:12px}
.pd-desc{font-size:13.5px;line-height:2;color:var(--text)}
.pd-desc ul{list-style:disc;padding-inline-start:20px;display:grid;gap:6px}
.pd-hero-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.pd-spark-wrap{background:var(--surface-sunken);border:1px solid var(--border);border-radius:12px;padding:10px 12px;margin-top:12px}
.pd-spark-head{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--text-muted);margin-bottom:4px}
.pd-spark{width:100%;height:56px;display:block}
.pd-spark .spark-line{fill:none;stroke:var(--brand-600);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pd-spark .spark-area{fill:rgba(35,112,35,.08)}
.pd-spark .spark-dot{fill:var(--brand-600)}
.pd-spark .spark-last{fill:#fff;stroke:var(--brand-600);stroke-width:2.5}
.pd-qty-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
.pd-total-chip{margin-inline-start:auto;font-size:12px;font-weight:800;color:var(--brand-700);background:var(--brand-50);border:1px solid var(--brand-200);border-radius:999px;padding:6px 12px;font-variant-numeric:tabular-nums}
.pd-summary{display:grid;grid-template-columns:150px 1fr;gap:14px;align-items:center;background:var(--surface-sunken);border:1px solid var(--border);border-radius:12px;padding:14px}
@media(max-width:560px){.pd-summary{grid-template-columns:1fr}}
.pd-summary-score{text-align:center}
.pd-summary-score b{font-size:26px;font-weight:800;display:block;letter-spacing:-.02em}
.pd-summary-bars{display:grid;gap:5px}
.pd-summary-bar{display:grid;grid-template-columns:38px 1fr 34px;gap:8px;align-items:center;font-size:11px;color:var(--text-muted)}
.pd-summary-bar .track{height:7px;border-radius:999px;background:var(--neutral-100);overflow:hidden}
.pd-summary-bar .fill{height:100%;border-radius:999px;background:var(--brand-500)}
.pd-recent{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.pd-recent-item{display:flex;align-items:center;gap:8px;background:var(--surface-raised);border:1px solid var(--border);border-radius:999px;padding:6px 12px 6px 6px;font-size:12px;font-weight:700;text-decoration:none;color:var(--text);white-space:nowrap;transition:border-color 120ms,color 120ms}
.pd-recent-item:hover{border-color:var(--brand-300);color:var(--brand-700)}
.pd-recent-ic{width:26px;height:26px;border-radius:50%;background:var(--brand-50);display:inline-flex;align-items:center;justify-content:center;font-size:14px;flex-shrink:0}
.pd-empty-note{padding:20px;text-align:center;color:var(--text-muted);font-size:13px;background:var(--surface-sunken);border:1px dashed var(--border-strong);border-radius:12px;line-height:1.9}
.pd-hero-desc{font-size:13px;color:var(--text-muted);line-height:1.95}
.pd-buybox-label{font-size:10.5px;font-weight:800;letter-spacing:.04em;color:var(--text-muted);margin-bottom:8px}
.pd-history-table{width:100%;border-collapse:collapse;font-size:12.5px}
.pd-history-table th,.pd-history-table td{text-align:right;padding:6px 8px;border-bottom:1px solid var(--border)}
.pd-history-table th{color:var(--text-muted);font-size:11px}
.pd-history-table td{font-weight:700;font-variant-numeric:tabular-nums}

/* ============================================================
   REDESIGNED PRODUCT CARDS (TASK 6) — .pcard
   Soft radial botanical header, floating pills, spec chips,
   highlighted price box, sleek footer bar + emerald CTA.
   ============================================================ */
.products-section .grid-auto{grid-template-columns:repeat(auto-fill,minmax(272px,1fr));gap:var(--space-5)}
@media (max-width:768px){.products-section .grid-auto{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:var(--space-3)}}
@media (max-width:520px){.products-section .grid-auto{grid-template-columns:1fr;gap:var(--space-3)}}

.pcard{
  --pc-emerald:var(--brand-600);--pc-emerald-2:var(--brand-500);--pc-emerald-dark:var(--brand-700);--pc-mint:var(--brand-50);
  position:relative;display:flex;flex-direction:column;
  background:var(--surface-raised);border:1px solid var(--border);
  border-radius:20px;overflow:hidden;
  transition:transform var(--transition-base),box-shadow var(--transition-base),border-color var(--transition-base);
}
.pcard:hover{transform:translateY(-3px);box-shadow:0 14px 34px rgba(28,90,28,.14);border-color:var(--brand-200)}
.pcard:focus-within{border-color:var(--brand-500);box-shadow:var(--shadow-focus)}

/* Media / header — soft radial botanical gradient */
.pcard-media{
  position:relative;display:block;height:132px;text-decoration:none;overflow:hidden;
  background:
    radial-gradient(120px 90px at 78% 18%,rgba(35,112,35,.16),transparent 62%),
    radial-gradient(140px 100px at 12% 88%,rgba(245,162,0,.12),transparent 60%),
    linear-gradient(135deg,#f2fbf4 0%,#eef7f0 45%,#fbfaf4 100%);
  border-bottom:1px solid var(--border);
}
.pcard-media::after{content:"";position:absolute;inset:0;background-image:radial-gradient(rgba(35,112,35,.10) 1px,transparent 1px);background-size:14px 14px;opacity:.5;pointer-events:none}
.pcard-media-icon{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:3rem;line-height:1;filter:drop-shadow(0 6px 10px rgba(28,90,28,.18))}
.pcard-cat-pill{position:absolute;top:10px;inset-inline-start:10px;z-index:2;font-size:10.5px;font-weight:800;color:var(--brand-700);background:rgba(255,255,255,.86);backdrop-filter:blur(4px);border:1px solid var(--brand-200);border-radius:999px;padding:3px 10px}
.pcard-stock{position:absolute;top:10px;inset-inline-end:10px;z-index:2;font-size:10px;font-weight:800;border-radius:999px;padding:3px 9px;border:1px solid transparent}
.pcard-stock.is-ok{color:#166534;background:#dcfce7;border-color:#bbf7d0}
.pcard-stock.is-out{color:#991b1b;background:#fee2e2;border-color:#fecaca}
.pcard-badge{position:absolute;bottom:10px;inset-inline-start:10px;z-index:2;font-size:10px;font-weight:800;color:#fff;background:linear-gradient(135deg,var(--brand-600),var(--brand-500));border-radius:999px;padding:3px 10px;box-shadow:0 3px 8px rgba(28,90,28,.25)}
.pcard-grade-badge{position:absolute;bottom:10px;inset-inline-end:10px;z-index:2;max-width:62%;font-size:9.5px;font-weight:700;color:#0f5132;background:rgba(255,255,255,.9);border:1px solid #cfe8cf;border-radius:8px;padding:2px 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* Body */
.pcard-body{padding:12px 14px 0;display:flex;flex-direction:column;gap:8px;flex:1}
.pcard-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}
.pcard-title{margin:0;font-size:14px;line-height:1.6;font-weight:800;color:var(--text);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pcard-rating{flex-shrink:0;display:inline-flex;flex-direction:column;align-items:flex-end;font-size:10px;color:var(--text-muted);white-space:nowrap}
.pcard-stars{color:#f59e0b;font-size:11px;letter-spacing:-1px}
.pcard-desc{margin:0;font-size:11.5px;line-height:1.85;color:var(--text-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.pcard-specs{display:flex;flex-wrap:wrap;gap:5px}
.pcard-spec{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;font-weight:600;color:#3f4a3f;background:var(--surface-sunken);border:1px solid var(--border);border-radius:8px;padding:3px 8px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pcard-spec i{font-style:normal;font-size:11px}
.pcard-spec.is-grade{color:var(--brand-700);background:var(--brand-50);border-color:var(--brand-200)}

/* Price box */
.pcard-pricebox{margin-top:auto;display:flex;flex-direction:column;gap:4px;background:linear-gradient(135deg,var(--brand-50),#ffffff 68%);border:1px solid var(--brand-200);border-radius:13px;padding:9px 11px}
.pcard-price-main{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
.pcard-price{font-size:18px;font-weight:900;color:var(--pc-emerald-dark);font-variant-numeric:tabular-nums}
.pcard-unit{font-size:10.5px;color:var(--text-muted)}
.pcard-tier{font-size:10.5px;font-weight:700;color:var(--brand-700)}
.pcard-min{font-size:10px;color:var(--text-muted)}

/* Footer bar */
.pcard-foot{padding:12px 14px 14px;display:flex;flex-direction:column;gap:8px;border-top:1px solid var(--border);background:var(--surface-raised)}
.pcard-foot-row{display:flex;align-items:center;gap:8px}
.pcard-stepper{display:inline-flex;align-items:center;border:1.5px solid var(--border-strong);border-radius:999px;overflow:hidden;background:var(--surface-raised);flex-shrink:0}
.pcard-stepper button{width:30px;height:30px;border:none;background:var(--surface-sunken);color:var(--text);font-size:15px;font-weight:800;cursor:pointer;line-height:1}
.pcard-stepper button:hover{background:var(--pc-mint);color:var(--pc-emerald-dark)}
.pcard-stepper input{width:42px;height:30px;border:none;text-align:center;font-family:inherit;font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums;background:transparent;color:var(--text);-moz-appearance:textfield}
.pcard-stepper input::-webkit-outer-spin-button,.pcard-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.pcard-pack{flex:1;min-width:0}
.pcard-pack-select{width:100%;padding:.42em .6em;border:1.5px solid var(--border-strong);border-radius:10px;font-family:inherit;font-size:11.5px;font-weight:600;color:var(--text);background:var(--surface-raised);cursor:pointer}
.pcard-pack-select:focus{outline:none;border-color:var(--brand-500);box-shadow:var(--shadow-focus)}
.pcard-add{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1.5px solid transparent;border-radius:12px;padding:11px 14px;font-family:inherit;font-size:13px;font-weight:800;color:#fff;cursor:pointer;background:linear-gradient(180deg,var(--brand-600) 0%,var(--brand-700) 100%);box-shadow:0 1px 2px rgba(0,0,0,.06),0 4px 12px color-mix(in srgb,var(--brand-600) 20%,transparent);transition:transform var(--transition-fast),box-shadow var(--transition-fast),filter var(--transition-fast)}
.pcard-add:hover{filter:brightness(1.06);transform:translateY(-1px);box-shadow:0 2px 6px rgba(0,0,0,.08),0 8px 20px color-mix(in srgb,var(--brand-600) 28%,transparent)}
.pcard-add:active{transform:translateY(0) scale(.985)}
.pcard-add:focus-visible{outline:none;box-shadow:var(--shadow-focus)}
.pcard-add svg{width:17px;height:17px;flex-shrink:0}
.pcard-detail-link{text-align:center;font-size:11px;font-weight:700;color:var(--pc-emerald-dark);text-decoration:none}
.pcard-detail-link:hover{text-decoration:underline}
@media (max-width:520px){.pcard-media{height:112px}.pcard-media-icon{font-size:2.5rem}}

/* Products page toolbar (search / sort / toggles) */
.products-toolbar{display:flex;gap:var(--space-3);flex-wrap:wrap;align-items:center;justify-content:space-between;margin-bottom:var(--space-4)}
.products-search{position:relative;flex:1;min-width:220px}
.products-search-input{width:100%;padding:.65em 2.4em .65em .9em;border:1.5px solid var(--border-strong);border-radius:999px;background:var(--surface-raised);font-family:inherit;font-size:var(--text-sm);color:var(--text)}
.products-search-input:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px rgba(46,142,46,.14)}
.products-search-ic{position:absolute;inset-inline-start:12px;top:50%;transform:translateY(-50%);color:var(--text-muted);pointer-events:none}
.products-toolbar-side{display:flex;gap:var(--space-2);flex-wrap:wrap;align-items:center}
.products-sort{padding:.55em .8em;border:1.5px solid var(--border-strong);border-radius:10px;font-family:inherit;font-size:var(--text-sm);font-weight:600;color:var(--text);background:var(--surface-raised);cursor:pointer}
.products-sort:focus{outline:none;border-color:var(--color-primary);box-shadow:0 0 0 3px rgba(46,142,46,.14)}
.products-toggle{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--text-muted);background:var(--surface-sunken);border:1.5px solid var(--border);border-radius:999px;padding:6px 12px;cursor:pointer;user-select:none}
.products-toggle input{accent-color:var(--brand-600);cursor:pointer}
.products-toggle:has(input:checked){color:var(--brand-700);background:var(--mint,var(--brand-50));border-color:var(--brand-200)}
@media (max-width:640px){.products-toolbar{flex-direction:column;align-items:stretch}.products-toolbar-side{justify-content:space-between}}


/* ── Motion polish ───────────────────────────────────────────── */
@keyframes mb-card-in {
  from { opacity: 0; transform: translateY(7px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .pcard, .product-card {
    animation: mb-card-in 260ms var(--motion-ease-out) backwards;
  }
  .pcard:nth-child(2), .product-card:nth-child(2) { animation-delay: 28ms; }
  .pcard:nth-child(3), .product-card:nth-child(3) { animation-delay: 56ms; }
  .pcard:nth-child(4), .product-card:nth-child(4) { animation-delay: 84ms; }
  .pcard:nth-child(5), .product-card:nth-child(5) { animation-delay: 112ms; }
  .pcard:nth-child(6), .product-card:nth-child(6) { animation-delay: 140ms; }
  .pcard:nth-child(7), .product-card:nth-child(7) { animation-delay: 168ms; }
  .pcard:nth-child(n+8), .product-card:nth-child(n+8) { animation-delay: 190ms; }
}

.pcard-stepper button,
.qty-stepper button,
.pd-qty button {
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), transform var(--motion-fast) var(--motion-ease-out);
}
.pcard-stepper button:active,
.qty-stepper button:active,
.pd-qty button:active {
  transform: scale(0.9);
}

.pcard-stepper input,
.qty-stepper input,
.pd-qty input {
  transition: color var(--motion-fast) var(--motion-ease-out);
}

.filter-chip:active,
.tab-btn:active,
.pd-tab:active {
  transform: scale(0.96);
}

.pd-faq summary::after {
  transition: background var(--motion-base) var(--motion-ease-out),
              border-color var(--motion-base) var(--motion-ease-out),
              color var(--motion-base) var(--motion-ease-out),
              transform var(--motion-base) var(--motion-ease-out);
}
.pd-faq details[open] summary::after { transform: rotate(180deg); }

@media (prefers-reduced-motion: no-preference) {
  .pd-faq details[open] .faq-a,
  .pd-faq details[open] .pd-faq-answer {
    animation: mb-details-in var(--motion-base) var(--motion-ease-out) both;
  }
}
