/* Scoped shared cards: home, classic catalog loops and favorites. */
.vato-card { display:flex; flex-direction:column; min-width:0; height:100%; background:#fff; border:1px solid var(--line,#ddd); border-radius:13px; overflow:hidden; color:var(--ink,#171717); }
.vato-card-media { position:relative; border-bottom:1px solid var(--line,#ddd); }
.vato-card .vato-card-image { display:flex; aspect-ratio:1/1; align-items:center; justify-content:center; padding:12px; background:#fff; }
.vato-card .vato-card-image :is(img,svg) { width:100%; height:100%; max-height:100%; object-fit:contain; margin:0; }
.vato-card .vato-favorite { position:absolute; right:10px; bottom:10px; display:grid; place-items:center; width:40px; height:40px; border:0; border-radius:50%; background:#f1f1f1; color:#666; padding:10px; cursor:pointer; }
.vato-favorite svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; }
.vato-card .vato-favorite[aria-pressed="true"] { color:var(--accent,#e50920); background:#fff0f1; }
.vato-favorite[aria-pressed="true"] svg { fill:currentColor; }
.vato-card-info { display:flex; flex-direction:column; flex:1; padding:15px; gap:10px; min-width:0; }
.vato-card-sku { color:#707070; font-size:11px; overflow-wrap:anywhere; }
.vato-card .vato-card-title { font-size:14px; line-height:1.45; font-weight:500; min-height:2.9em; margin:0; padding:0; overflow-wrap:anywhere; }
.vato-card a { text-decoration:none; color:inherit; }
.vato-card .vato-card-price { font-size:20px; font-weight:700; margin:0 0 6px; }
.vato-card-price del { color:#707070; font-size:12px; display:block; font-weight:400; }
.vato-card-price ins { text-decoration:none; }
.vato-card .vato-card-buy { display:flex; gap:6px; align-items:stretch; margin: auto 0 0; flex-wrap:nowrap; }
.vato-card-quantity { display:flex; align-items:center; min-width:0; flex:1; border:1px solid #c6c6c6; border-radius:8px; overflow:hidden; }
.vato-card .vato-card-quantity button { width:28px; flex:0 0 28px; min-height:42px; background:#fff; border:0; color:var(--ink,#171717); font-size:17px; cursor:pointer; padding:0; }
.vato-card .vato-card-quantity input { width:100%; min-width:24px; flex:1; padding:0; border:0; border-radius:0; text-align:center; font:inherit; font-size:14px; appearance:textfield; background:#fff; color:var(--ink,#171717); }
.vato-card-quantity input::-webkit-inner-spin-button,.vato-card-quantity input::-webkit-outer-spin-button { appearance:none; margin:0; }
.vato-card .vato-card-add,.vato-card .vato-card-options { display:flex; align-items:center; justify-content:center; min-height:44px; padding:10px 12px; border:0; border-radius:var(--vato-button-radius,8px); background:var(--accent,#e50920); color:#fff; font-family:inherit; font-size:13px; font-weight:600; cursor:pointer; text-align:center; }
.vato-card .vato-card-options { margin-top:auto; }
.vato-card button:disabled { cursor:wait; opacity:.55; }
.vato-card :focus-visible { outline:3px solid var(--accent,#e50920); outline-offset:-3px; }
.vato-card .vato-card-status { margin:0; min-height:2.8em; font-size:11px; line-height:1.4; color:#585858; }
.vato-favorites-pages { display:flex; gap:16px; align-items:center; justify-content:center; margin:24px 0; }
.vato-favorites-pages[hidden] { display:none; }
.vato-favorites-pages button { padding:12px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; }
/* Remove legacy outer padding so the one shared component owns its geometry. */
body .woocommerce ul.products li.product:has(> .vato-card) { padding:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
body .woocommerce ul.products li.product .vato-card-image img { margin:0; width:100%; height:100%; object-fit:contain; }
body .woocommerce ul.products li.product .vato-card-title { font-size:14px; }
body .woocommerce ul.products { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:19px; }
body .woocommerce ul.products::before,body .woocommerce ul.products::after { display:none; }
body .woocommerce ul.products li.product { width:auto; float:none; margin:0; min-width:0; }
@media(max-width:1000px) { body .woocommerce ul.products { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) {
  body .woocommerce ul.products { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .vato-card-info { padding:10px; gap:8px; }
  /* Two-column cards cannot fit a complete stepper beside the purchase label.
     Give each control a full row instead of shrinking/clipping the stepper. */
  .vato-card .vato-card-buy { flex-direction:column; gap:6px; }
  .vato-card .vato-card-quantity { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); flex:none; width:100%; min-height:44px; }
  .vato-card .vato-card-quantity button { width:100%; min-width:0; min-height:44px; }
  .vato-card .vato-card-quantity input { width:100%; min-width:0; min-height:44px; }
  .vato-card .vato-card-add { width:100%; padding:8px; font-size:12px; }
  .vato-card .vato-card-price { font-size:18px; overflow-wrap:anywhere; }
  .vato-card .vato-card-price .amount { white-space:normal; }
}
