/* ================================================================
   Lab Product Cards — Design 6
   ================================================================ */

:root {
  --lpc-teal:       #008b95;
  --lpc-teal-lt:    #e6f5f6;
  --lpc-teal-mid:   #b2dde0;
  --lpc-orange:     #ff7b00;
  --lpc-orange-lt:  #fff7ed;
  --lpc-orange-bd:  #ffe5c0;
  --lpc-ink:        #0f172a;
  --lpc-ink2:       #1e293b;
  --lpc-ink3:       #475569;
  --lpc-ink4:       #94a3b8;
  --lpc-rule:       #f1f5f9;
  --lpc-rule-md:    #e2e8f0;
  --lpc-surface:    #f8fafc;
  --lpc-white:      #ffffff;
  --lpc-green:      #00a651;
  --lpc-green-lt:   #eafaf1;
  --lpc-green-bd:   #b7e4cc;
  --lpc-purple:     #8b5cf6;
}
/* ─────────────────────────────────────────────────────────────
   Lab Product Card — Add to Cart button states (v2)
   Add these rules to your lab-product-cards.css (Design 6)
   They extend / replace the existing .lpc-btn rules.
───────────────────────────────────────────────────────────── */

/* ── ADDING state — dimmed, spinner icon, no pointer ─────── */
.lpc-btn.lpc-btn--adding {
  opacity: 0.65;
  pointer-events: none;
  cursor: not-allowed;
  background: linear-gradient(135deg, #94a3b8, #64748b) !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Spinner animation for the SVG circle inside Adding state */
@keyframes lpc-spin {
  to { stroke-dashoffset: -40; }
}
.lpc-btn--adding .lpc-spin {
  animation: lpc-spin 0.8s linear infinite;
}

/* ── IN CART state — teal, "View Cart →" ─────────────────── */
.lpc-btn.lpc-btn--in-cart,
.lpc-btn.added {                        /* WC also adds .added on success */
  background: linear-gradient(135deg, #00b4c0, #008b95) !important;
  box-shadow: 0 4px 12px rgba(0, 139, 149, 0.28) !important;
  color: #fff !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  opacity: 1 !important;
  white-space: nowrap;
}

.lpc-btn.lpc-btn--in-cart:hover,
.lpc-btn.added:hover {
  box-shadow: 0 6px 18px rgba(0, 139, 149, 0.42) !important;
  transform: translateY(-1px) !important;
}

/* Override package teal button so it still looks correct in in-cart state */
.lpc-pkg .lpc-btn.lpc-btn--in-cart,
.lpc-pkg .lpc-btn.added {
  background: linear-gradient(135deg, #00b4c0, #008b95) !important;
}

/* ── ERROR state ─────────────────────────────────────────── */
.lpc-btn.lpc-btn--error {
  background: linear-gradient(135deg, #f87171, #ef4444) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.28) !important;
  color: #fff !important;
  cursor: pointer;
  animation: lpc-shake 0.35s ease;
}

@keyframes lpc-shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-4px); }
  75%       { transform: translateX(4px); }
}

/* ── Make sure WC's own .adding class doesn't override ────── */
.lpc-btn.adding {
  opacity: 0.65 !important;
  pointer-events: none !important;
}
/* ── Shop page wrapper ───────────────────────────────────────── */
.lab-shop-wrap {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 40px 60px;
  box-sizing: border-box;
}

/* ── Header row ─────────────────────────────────────────────── */
.lab-shop-header {
  padding: 28px 0 24px;
}

.lab-shop-header-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.lab-shop-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--lpc-ink);
  letter-spacing: -0.5px;
  margin: 0 0 4px;
}

.lab-shop-count {
  font-size: 13px;
  color: var(--lpc-ink4);
  margin: 0;
}

.lab-shop-sort .woocommerce-ordering { margin: 0; float: none; }
.lab-shop-sort select {
  border: 1px solid var(--lpc-rule-md);
  border-radius: 10px;
  padding: 9px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--lpc-ink2);
  background: var(--lpc-white);
  cursor: pointer;
  outline: none;
  appearance: auto;
}

/* ── Product grid ───────────────────────────────────────────── */
.lab-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Empty state ─────────────────────────────────────────────── */
.lab-shop-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--lpc-ink4);
}
.lab-shop-empty h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--lpc-ink2);
  margin: 16px 0 8px;
}
.lab-shop-empty p { font-size: 14px; }
.lab-shop-empty a { color: var(--lpc-teal); }

/* ── Pagination ─────────────────────────────────────────────── */
.lab-shop-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.lab-shop-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--lpc-rule-md);
  font-size: 13px;
  font-weight: 600;
  color: var(--lpc-ink2);
  text-decoration: none;
  background: var(--lpc-white);
  transition: all 0.18s;
}
.lab-shop-pagination .page-numbers:hover {
  border-color: var(--lpc-teal);
  color: var(--lpc-teal);
}
.lab-shop-pagination .page-numbers.current {
  background: var(--lpc-teal);
  border-color: var(--lpc-teal);
  color: #fff;
}
.lab-shop-pagination .page-numbers.dots {
  border: none;
  background: none;
}

/* ════════════════════════════════════════════════════════════════
   CARD — Design 6
   White card, subtle border, teal border+shadow on hover
   ════════════════════════════════════════════════════════════════ */

.lpc {
  background: var(--lpc-white);
  border-radius: 16px;
  border: 1px solid var(--lpc-rule-md);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.lpc:hover {
  border-color: var(--lpc-teal);
  box-shadow: 0 8px 28px rgba(0,139,149,0.12);
  transform: translateY(-2px);
}

/* ── Card body (padding wrapper) ─────────────────────────────── */
.lpc-body {
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* ── Top row: icon left + badge right ────────────────────────── */
.lpc-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

/* Icon — Design 10 style, kept as requested */
.lpc-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--lpc-orange-lt), var(--lpc-orange-bd));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lpc-icon-wrap svg {
  width: 20px;
  height: 20px;
  color: var(--lpc-orange);
  display: block;
}
.lpc-pkg .lpc-icon-wrap {
  background: linear-gradient(135deg, var(--lpc-teal-lt), var(--lpc-teal-mid));
}
.lpc-pkg .lpc-icon-wrap svg { color: var(--lpc-teal); }

/* ✓ Off badge — Design 10 style, kept as requested */
.lpc-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--lpc-green-lt);
  border: 1px solid var(--lpc-green-bd);
  color: #065f46;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 20px;
  white-space: nowrap;
}
.lpc-top-badge svg { width: 10px; height: 10px; color: var(--lpc-green); }

/* ── Product name ────────────────────────────────────────────── */
.lpc-name-link { display: block; text-decoration: none; }

.lpc-name {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--lpc-ink);
  line-height: 1.3;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.18s;
}
.lpc-name-link:hover .lpc-name { color: var(--lpc-teal); }

/* ── Parameter pills — Design 6 ─────────────────────────────── */
.lpc-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lpc-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 6px;
}

.lpc-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.lpc-pills-more {
  font-size: 11px;
  font-weight: 600;
  color: var(--lpc-teal);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 3px 2px;
}
.lpc-pills-more:hover { text-decoration: underline; }

/* ── Info row — D6: icon + label pairs ──────────────────────── */
.lpc-info-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.lpc-info-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--lpc-ink3);
  font-weight: 500;
}

.lpc-info-item svg {
  width: 13px;
  height: 13px;
  color: var(--lpc-ink4);
  flex-shrink: 0;
  display: block;
}

/* ── Divider ─────────────────────────────────────────────────── */
.lpc-divider { height: 1px; background: var(--lpc-rule); }

/* ── Footer — price left | VIP + button right ───────────────── */
.lpc-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px 18px;
  background: var(--lpc-surface);
}

.lpc-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.lpc-vip {
  font-size: 10px;
  color: #8b5cf6;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.lpc-vip::before {
  content: '♦';
  font-size: 8px;
}

/* Price block */
.lpc-price-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.lpc-price {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--lpc-ink);
  letter-spacing: -0.5px;
  line-height: 1;
}

.lpc-price-sub {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lpc-regular {
  font-size: 12px;
  color: var(--lpc-ink4);
  text-decoration: line-through;
  font-weight: 400;
}

.lpc-price-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.lpc-off {
  font-size: 11px;
  font-weight: 700;
  color: var(--lpc-green);
  background: var(--lpc-green-lt);
  border: 1px solid var(--lpc-green-bd);
  padding: 1px 7px;
  border-radius: 4px;
}

.lpc-save {
  font-size: 11px;
  font-weight: 600;
  color: var(--lpc-ink4);
  margin-top: 3px;
}

.lpc-off {
  font-size: 11px;
  font-weight: 700;
  color: var(--lpc-green);
}

/* CTA wrap — VIP line above button */
.lpc-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

/* VIP line — D6 style */
.lpc-vip {
  font-size: 10px;
  color: var(--lpc-purple);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}
.lpc-vip::before {
  content: '♦';
  font-size: 8px;
}
.lpc-vip strong { font-weight: 700; }

/* Add to Cart button — D6 orange with + icon */
.lpc-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none !important;
  border: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ff9f1c, #ff7b00);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(255,123,0,0.30);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lpc-btn svg {
  width: 14px;
  height: 14px;
  display: block;
  flex-shrink: 0;
}

.lpc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(255,123,0,0.42);
}

/* Package — teal button */
.lpc-pkg .lpc-btn:not(.lpc-btn-view) {
  background: linear-gradient(135deg, #00b4c0, #008b95);
  box-shadow: 0 4px 12px rgba(0,139,149,0.26);
}
.lpc-pkg .lpc-btn:hover:not(.lpc-btn-view) {
  box-shadow: 0 6px 18px rgba(0,139,149,0.40);
}

/* View Details fallback */
.lpc-btn-view {
  background: var(--lpc-white) !important;
  color: var(--lpc-ink2) !important;
  border: 1.5px solid var(--lpc-rule-md) !important;
  box-shadow: none !important;
}
.lpc-btn-view:hover {
  background: var(--lpc-surface) !important;
  transform: none !important;
}

/* instant-add-to-cart.js states */
.lpc-btn.adding { opacity: 0.7; pointer-events: none; }
.lpc-btn.added  { background: #059669 !important; box-shadow: none !important; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .lab-shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .lab-shop-wrap { padding: 0 16px 40px; }
  .lab-shop-title { font-size: 22px; }
  .lab-shop-grid { grid-template-columns: 1fr; gap: 14px; }
  .lab-shop-header-inner { flex-direction: column; align-items: flex-start; }
}