/* ============================================================
   SHIPITALL  -  PRODUCTS CSS
   Product grid, product cards, shop page, filters
   ============================================================ */

/* ── PRODUCT GRID ── */
.sia-product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.sia-grid-5 { grid-template-columns: repeat(5, 1fr); }
.sia-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── PRODUCT CARD ── */
.sia-product-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sia-border);
  cursor: pointer;
  transition: all 0.22s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.sia-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border-color: rgba(232,56,13,0.2);
}

/* Product Image */
.sia-product-img-wrap {
  position: relative;
  background: var(--sia-surface);
  aspect-ratio: 1;
  overflow: hidden;
}
.sia-product-img-link {
  display: block;
  width: 100%;
  height: 100%;
}
.sia-product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.sia-product-card:hover .sia-product-img-wrap img { transform: scale(1.04); }
.sia-product-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: var(--sia-surface);
}

/* Badges */
.sia-product-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.sia-grade-badge-a\+ { background: rgba(46,204,113,0.9) !important; color: white !important; }
.sia-grade-badge-a   { background: rgba(52,152,219,0.9) !important; color: white !important; }
.sia-grade-badge-b   { background: rgba(255,193,7,0.9) !important; color: var(--sia-dark) !important; }
.sia-grade-badge-c   { background: rgba(232,56,13,0.9) !important; color: white !important; }

/* Wishlist button */
.sia-product-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 2;
  line-height: 1;
}
.sia-product-wishlist:hover { transform: scale(1.15); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.sia-product-wishlist.active { background: #fee; }

/* Quick view */
.sia-product-quick-view {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(13,13,13,0.85);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  opacity: 0;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
  z-index: 2;
  font-family: var(--sia-font-body);
}
.sia-product-card:hover .sia-product-quick-view {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Product Info */
.sia-product-info {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.sia-product-vendor {
  font-size: 11px;
  color: var(--sia-text-muted);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.sia-product-vendor:hover { color: var(--sia-primary); }
.sia-vendor-tier-mini { font-size: 11px; line-height: 1; }
.sia-vendor-platinum { color: #9B59B6; }
.sia-vendor-gold     { color: #F39C12; }
.sia-vendor-silver   { color: #95A5A6; }
.sia-vendor-verified { color: var(--sia-green); }
.sia-vendor-new      { color: var(--sia-blue); }
.sia-vendor-warning  { color: var(--sia-accent); }

.sia-product-title-link { text-decoration: none; color: inherit; }
.sia-product-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--sia-dark);
  transition: color 0.2s;
  font-family: var(--sia-font-body);
}
.sia-product-card:hover .sia-product-title { color: var(--sia-primary); }

.sia-product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.sia-rating-count { font-size: 11px; color: var(--sia-text-muted); }

.sia-product-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  gap: 8px;
}
.sia-product-prices { flex: 1; }
.sia-product-price-original {
  font-size: 11px;
  color: var(--sia-text-muted);
  text-decoration: line-through;
  display: block;
  line-height: 1;
  margin-bottom: 2px;
}
.sia-product-price {
  font-family: var(--sia-font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--sia-dark);
  display: block;
  line-height: 1;
}

/* ==============================================================
   Variant swatches on product cards (v1.0.92)
   - Colour + image swatches only. Text/size pills intentionally
     excluded to keep cards scannable on mobile.
   - Non-interactive; whole card links to the product page.
   ============================================================== */
.sia-card-swatches {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  margin: 6px 0 8px;
  min-height: 18px;
}
.sia-card-swatches + .sia-card-swatches {
  margin-top: -4px;
}
.sia-card-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  flex-shrink: 0;
}
/* v1.3.0.1: clickable swatches on cards deep-link to PDP with preselect param */
a.sia-card-swatch {
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
a.sia-card-swatch:hover,
a.sia-card-swatch:focus-visible {
  transform: scale(1.18);
  border-color: var(--sia-brand-red, #E8380D);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6), 0 0 0 2px rgba(232,56,13,0.25);
  outline: none;
}
.sia-card-swatch--image {
  background-size: cover;
  background-position: center;
  border-radius: 3px;
}
.sia-card-swatch-more {
  font-size: 10px;
  font-weight: 600;
  color: var(--sia-text-muted);
  margin-left: 2px;
  line-height: 1;
  white-space: nowrap;
}

/* v1.0.92.3: swatches whose term is OOS across every variation.
   Greyed + diagonal strike-through line via ::after so it reads
   on every colour including white/near-white. */
.sia-card-swatch--oos {
  position: relative;
  opacity: 0.42;
  filter: saturate(0.3);
}
.sia-card-swatch--oos::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 1.5px;
  background: #111827;
  transform: translateY(-50%) rotate(-38deg);
  pointer-events: none;
  border-radius: 1px;
}

/* "From" prefix on variable-product card price (v1.0.92) */
.sia-price-prefix {
  font-size: 10px;
  font-weight: 600;
  color: var(--sia-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 2px;
  vertical-align: 2px;
}

/* Add to Cart Button */
.sia-add-to-cart-btn {
  width: 36px;
  height: 36px;
  background: var(--sia-primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  text-decoration: none;
}
.sia-add-to-cart-btn:hover {
  background: var(--sia-primary-dark);
  transform: scale(1.08);
  color: white;
}
.sia-add-to-cart-btn.sia-out-of-stock-btn {
  background: var(--sia-surface2);
  cursor: not-allowed;
}
.sia-add-to-cart-btn svg { stroke: white; }

/* Loading state */
.sia-add-to-cart-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.sia-product-delivery {
  margin-top: 6px;
  font-size: 11px;
  min-height: 16px; /* v1.3.0.1: reserve row so cards without a delivery
                       badge still align with cards that have one */
}
.sia-delivery-badge { display: inline-flex; align-items: center; gap: 3px; }
.sia-delivery-badge.free  { color: var(--sia-green); font-weight: 600; }
.sia-delivery-badge.threshold { color: var(--sia-text-muted); }
.sia-delivery-badge.paid  { color: var(--sia-text-muted); }

/* ── SHOP PAGE LAYOUT ── */
.sia-woo-wrapper { padding-top: 24px; padding-bottom: 48px; }
.sia-woo-main { width: 100%; }
.sia-shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}
.sia-shop-title {
  font-family: var(--sia-font-display);
  font-size: 22px;
  font-weight: 800;
}
.sia-shop-count {
  font-size: 13px;
  color: var(--sia-text-muted);
}
.sia-shop-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sia-breadcrumb {
  margin-bottom: 16px;
}
.sia-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex-wrap: wrap;
}
.sia-breadcrumb li { font-size: 13px; color: var(--sia-text-muted); }
.sia-breadcrumb li a { color: var(--sia-primary); text-decoration: none; }
.sia-breadcrumb li a:hover { text-decoration: underline; }
.sia-bc-sep { color: var(--sia-text-muted); opacity: 0.5; }

/* WooCommerce Products Loop */
.woocommerce-products-wrapper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* ── NEWSLETTER STRIP ── */
.sia-newsletter-strip {
  background: white;
  border-top: 1px solid var(--sia-border);
  border-bottom: 1px solid var(--sia-border);
  padding: 28px 0;
}
.sia-newsletter-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.sia-newsletter-text h3 {
  font-family: var(--sia-font-display);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}
.sia-newsletter-text p { font-size: 13px; color: var(--sia-text-muted); }
.sia-newsletter-form {
  display: flex;
  gap: 10px;
  flex: 1;
  max-width: 420px;
}
.sia-newsletter-form .sia-input { flex: 1; }

/* ── TOAST NOTIFICATIONS ── */
.sia-toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.sia-toast {
  background: var(--sia-dark);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: sia-toast-in 0.3s ease;
  pointer-events: all;
  max-width: 320px;
  text-align: center;
}
.sia-toast.success { border-left: 4px solid var(--sia-green); }
.sia-toast.error   { border-left: 4px solid var(--sia-primary); }
.sia-toast.info    { border-left: 4px solid #3498db; }
@keyframes sia-toast-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── BACK TO TOP ── */
.sia-back-to-top {
  position: fixed;
  bottom: 80px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--sia-dark);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 900;
}
.sia-back-to-top.visible { opacity: 1; pointer-events: all; }
.sia-back-to-top:hover { transform: translateY(-3px); background: var(--sia-primary); }

/* ── WHATSAPP FLOAT ── */
.sia-whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  cursor: pointer;
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
  color: white;
}
.sia-whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
  color: white;
}

/* ── RESPONSIVE ── */
@media (max-width: 1200px) {
  .sia-product-grid, .woocommerce-products-wrapper { grid-template-columns: repeat(4, 1fr); }
  .sia-grid-5 { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .sia-product-grid, .woocommerce-products-wrapper { grid-template-columns: repeat(3, 1fr); }
  .sia-grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .sia-product-grid,
  .woocommerce-products-wrapper,
  .sia-grid-5,
  .woocommerce ul.products,
  ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .sia-newsletter-inner { flex-direction: column; }
  .sia-newsletter-form { max-width: 100%; width: 100%; }
  /* Product card compact */
  .sia-product-card { border-radius: 8px; }
  .sia-product-img-wrap { height: 140px; }
  .sia-product-body { padding: 10px; }
  .sia-product-title { font-size: 12px; -webkit-line-clamp: 2; }
  .sia-product-price { font-size: 14px; }
}
@media (max-width: 400px) {
  .sia-product-grid,
  .sia-grid-5,
  ul.products {
    gap: 8px !important;
  }
  .sia-product-img-wrap { height: 120px; }
}

/* ============================================================
   v1.0.49: RECENTLY VIEWED RAIL
   ============================================================ */
.sia-recently-viewed-section {
  margin: 48px 0 32px;
  padding: 0 16px;
}
.sia-recently-viewed-section[hidden] { display: none !important; }
.sia-rv-title {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--sia-text);
  letter-spacing: -0.01em;
}
.sia-rv-rail {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
@media (max-width: 768px) {
  .sia-recently-viewed-section { margin: 32px 0 20px; padding: 0 12px; }
  .sia-rv-title { font-size: 18px; margin-bottom: 14px; }
  .sia-rv-rail {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px;
    padding-bottom: 8px;
    scrollbar-width: thin;
  }
  .sia-rv-rail > .sia-product-card {
    flex: 0 0 180px;
    scroll-snap-align: start;
  }
}

/* ============================================================
   v1.0.68.1  -  PRODUCT CARD REFRESH
   Custom .sia-product-card only (shop/archive/search/home).
   WC-default related-products markup is NOT touched here -
   that stays parked for the whole-website look-and-feel pass.

   Purpose of this block:
     * Softer hover (less lift, cleaner shadow)
     * Cleaner badges + proper OOS badge class (no inline style)
     * "Sold by" prefix styling for vendor line
     * Baseline-aligned price row regardless of strike-through
     * Focus-visible rings on wishlist / quick-view / ATC
     * Quick-add button polish + bigger mobile tap target
     * Fix old dead mobile rule that targeted .sia-product-body
       (the real class is .sia-product-info)

   All rules here override earlier declarations in this file via
   source order alone - no !important unless we are competing
   with WC defaults we cannot reach any other way.
   ============================================================ */

/* Softer, more premium hover. Primary-tinted border fade-in
   makes the card feel interactive without the whole page
   jumping on mouse-over. */
.sia-product-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.sia-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(232, 56, 13, 0.28);
}

/* Image zoom on hover: subtler than before so it feels like a
   refinement rather than a pop. */
.sia-product-card:hover .sia-product-img-wrap img {
  transform: scale(1.03);
}

/* Keyboard focus: outline the whole card when any child focuses
   via :focus-within so tabbing through the grid is obvious. */
.sia-product-card:focus-within {
  border-color: var(--sia-primary);
  box-shadow: 0 0 0 2px rgba(232, 56, 13, 0.18);
}

/* ── Badges ── */
.sia-product-badges {
  max-width: calc(100% - 54px); /* leave room for wishlist btn */
  gap: 5px;
}
.sia-product-badges .sia-badge {
  padding: 3px 8px;
  font-size: 10px;
  letter-spacing: 0.4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
/* Dedicated Out-of-Stock badge - replaces the old inline
   style="background:var(--sia-text-muted)" in the PHP. */
.sia-badge-oos {
  background: var(--sia-text-muted, #6b7280);
  color: #ffffff;
}

/* v1.0.86: Delivery speed badges on product cards.
   Previously these backgrounds were only emitted inline by
   SIA_Delivery_Badges::render_single(), which runs only on
   single-product pages. Moved here so the same pill styling
   applies on homepage, archive and search cards too. */
.sia-badge-sameday {
  background: #10b981 !important;
  color: #ffffff !important;
}
.sia-badge-nextday {
  background: #2563eb !important;
  color: #ffffff !important;
}

/* ── Wishlist / Quick-view focus + active feedback ── */
.sia-product-wishlist:focus-visible,
.sia-product-quick-view:focus-visible,
.sia-add-to-cart-btn:focus-visible {
  outline: 2px solid var(--sia-primary);
  outline-offset: 2px;
}
.sia-product-wishlist:active {
  transform: scale(1.05);
}

/* Quick view: keep the reveal-on-hover behaviour from the base
   rule but tighten the typography and tap target. */
.sia-product-quick-view {
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  bottom: 12px;
  background: rgba(17, 24, 39, 0.88);
}

/* ── Product Info polish ── */
.sia-product-info {
  padding: 12px 14px 14px;
  gap: 4px;
}

/* "Sold by" prefix: muted label then stronger vendor name.
   Keeps the whole thing on one line with ellipsis so long
   vendor store names do not push the card layout. */
.sia-product-vendor {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.sia-sold-by-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--sia-text-muted);
  font-weight: 600;
  margin-right: 3px;
}
.sia-vendor-name {
  font-weight: 600;
  color: var(--sia-dark);
}
.sia-product-vendor:hover .sia-vendor-name {
  color: var(--sia-primary);
}

/* Title: keep 2-line clamp but with a reserved min-height so
   one-line titles do not collapse the card and visually
   misalign the price row across the grid. Using em-based
   min-height so it scales with the font size on mobile. */
.sia-product-title {
  min-height: 2.8em; /* 2 lines at 1.4 line-height */
  margin-bottom: 6px;
}

/* ── Price row: baseline alignment ── */
.sia-product-price-row {
  align-items: flex-end;
  gap: 10px;
}
.sia-product-prices {
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: flex-end;
}
/* With align-items:flex-end on the row and justify-content:flex-end
   on this column, the main price is naturally bottom-aligned whether
   or not a strike-through original price is above it. No spacer or
   :has() selector needed - pure flexbox handles the alignment. */
.sia-product-price-original {
  font-size: 12px;
  font-weight: 500;
}
.sia-product-price {
  font-size: 19px;
  letter-spacing: -0.01em;
}

/* ── Add-to-Cart button polish ── */
.sia-add-to-cart-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(232, 56, 13, 0.22);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.sia-add-to-cart-btn:hover {
  transform: none; /* drop the scale(1.08) - cleaner */
  box-shadow: 0 4px 12px rgba(232, 56, 13, 0.32);
}
.sia-add-to-cart-btn:active {
  transform: scale(0.95);
  box-shadow: 0 1px 3px rgba(232, 56, 13, 0.25);
}
.sia-add-to-cart-btn.sia-out-of-stock-btn {
  box-shadow: none;
  color: var(--sia-text-muted);
}
.sia-add-to-cart-btn.sia-out-of-stock-btn:hover {
  box-shadow: none;
}
/* Variable-product "select options" chevron gets the same
   look but a neutral tone so users do not mistake it for a
   one-tap add. */
.sia-add-to-cart-btn.sia-select-btn {
  background: var(--sia-dark, #111827);
  box-shadow: 0 2px 6px rgba(17, 24, 39, 0.22);
}
.sia-add-to-cart-btn.sia-select-btn:hover {
  background: #000000;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.3);
}

/* ── Delivery line ── */
.sia-product-delivery {
  margin-top: 8px;
  min-height: 16px; /* stabilise height when badge is empty */
  line-height: 1.3;
}

/* ── Mobile refinements ── */
@media (max-width: 640px) {
  /* Original file had a rule targeting .sia-product-body which
     does not exist in the markup (real class is
     .sia-product-info). Re-target so mobile padding actually
     applies. */
  .sia-product-info {
    padding: 10px 10px 12px;
    gap: 3px;
  }
  /* Tighten the image wrap. The base rule hard-codes height:140px
     which ignores aspect-ratio; restore square aspect ratio on
     mobile for a more even grid. */
  .sia-product-img-wrap {
    height: auto;
    aspect-ratio: 1;
  }
  .sia-sold-by-label {
    display: none; /* save a line of vertical space */
  }
  .sia-product-vendor {
    font-size: 10px;
  }
  .sia-product-title {
    font-size: 12px;
    min-height: 2.6em;
  }
  .sia-product-price {
    font-size: 15px;
  }
  .sia-product-price-original {
    font-size: 11px;
  }
  /* Bigger tap target for the quick-add button on touch. */
  .sia-add-to-cart-btn {
    width: 38px;
    height: 38px;
    border-radius: 9px;
  }
  /* Quick view sits hidden by default on mobile - hover does not
     exist on touch devices so the slide-up was invisible and
     only served to compete with taps on the image. */
  .sia-product-quick-view {
    display: none;
  }
  .sia-product-wishlist {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  .sia-product-badges .sia-badge {
    padding: 2px 6px;
    font-size: 9px;
    letter-spacing: 0.3px;
  }
}
@media (max-width: 400px) {
  .sia-product-title {
    font-size: 11px;
    min-height: 2.4em;
  }
  .sia-product-info {
    padding: 8px 8px 10px;
  }
}

/* Reduced motion: skip all the hover transforms so the grid
   stays perfectly still. */
@media (prefers-reduced-motion: reduce) {
  .sia-product-card,
  .sia-product-card:hover,
  .sia-product-card:hover .sia-product-img-wrap img,
  .sia-add-to-cart-btn,
  .sia-add-to-cart-btn:hover,
  .sia-add-to-cart-btn:active,
  .sia-product-wishlist,
  .sia-product-wishlist:active,
  .sia-product-quick-view {
    transform: none !important;
    transition: none !important;
  }
}

/* ============================================================
   v1.0.86: Bob-Shop-inspired card typography pass
   ============================================================
   These overrides apply after the existing v2 rules so they win
   without re-writing earlier declarations. See:
     shipitall-mockup-v4 (card) + shipitall-product-page-mockup-v7

   Changes:
   - Vendor name is now the prominent element in orange uppercase,
     dropping the muted "Sold by" prefix entirely.
   - Title smaller (11px / 600) with a guaranteed 2-line footprint.
   - Price smaller (11.5px / 800).
   - Condition pill (new / secondhand) renders between price and
     delivery when product meta _sia_product_condition is set.
   ============================================================ */

/* Hide the muted "Sold by" prefix — vendor name alone is the
   recognisable element on Bob-Shop-style cards. */
.sia-sold-by-label { display: none; }

/* Vendor name: orange, bold, uppercase, slight tracking. */
.sia-product-vendor { margin-bottom: 4px; }
.sia-vendor-name {
  font-family: var(--sia-font-body);
  font-weight: 700;
  font-size: 11px;
  color: var(--sia-primary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.sia-product-vendor:hover .sia-vendor-name {
  color: var(--sia-primary-dark, #c9320b);
  text-decoration: underline;
}

/* Title: 11px / 600, 2-line clamp, reserves a stable 30px slot. */
.sia-product-title {
  font-family: var(--sia-font-body);
  font-weight: 600;
  font-size: 11px !important;
  line-height: 1.35;
  min-height: 30px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 6px;
}

/* Price: 11.5px / 800. Was 19px — large prices read like pawn-shop
   rather than commerce, per design review. */
.sia-product-price {
  font-family: var(--sia-font-body);
  font-weight: 800;
  font-size: 11.5px !important;
  letter-spacing: -0.2px;
}
.sia-product-price-original {
  font-size: 10px;
  font-weight: 500;
}

/* Condition pill row */
.sia-product-condition-row {
  margin-top: 4px;
}
.sia-product-condition {
  display: inline-block;
  font-family: var(--sia-font-body);
  font-weight: 700;
  font-size: 9.5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.3;
}
.sia-product-condition.is-new {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.sia-product-condition.is-refurbished {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.sia-product-condition.is-used {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
/* Legacy alias — was introduced in v1.0.86, retired v1.0.94. Kept so
   any existing posts still tagged with the old value don't blow up
   visually (though the reader now ignores it). */
.sia-product-condition.is-secondhand {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
