/* clean, airy product page */
.wpfc-container{margin:0 auto;padding:24px 10px}
.wpfc-grid{display:grid;grid-template-columns:0.5fr .9fr;gap:36px;align-items:start;margin-top:10px;}
@media (max-width:980px){.wpfc-grid{grid-template-columns:1fr}}
.wpfc-media .wpfc-hero{position:relative;border-radius:16px;overflow:hidden;box-shadow:0 5px 30px rgba(0,0,0,.08);background:#fff}
.wpfc-media .wpfc-hero img{display:block;width:100%;height:auto}
.wpfc-badge{position:absolute;top:12px;left:12px;background:#dc1919;color:#fff;border-radius:999px;padding:6px 10px;font-weight:bold;font-size:14px;letter-spacing:.2px}
.wpfc-thumbs{display:flex;gap:10px;margin:12px 0 0;padding:0;list-style:none;flex-wrap:wrap}
.wpfc-thumbs img{width:68px;height:68px;object-fit:cover;border-radius:10px;border:1px solid #ececec;display:block}
.wpfc-thumbs a{display:inline-block;outline:0}
.wpfc-thumbs a.is-active img{box-shadow:0 0 0 2px #2563eb}

.wpfc-summary .wpfc-title{margin:0 0 6px;font-size:28px;line-height:1.25}
.wpfc-meta{display:flex;gap:16px;opacity:.7;margin-bottom:12px}
.wpfc-price-wrap{display:flex;align-items:baseline;gap:10px;margin-bottom:12px}
.wpfc-price-now{font-size:28px;font-weight:700}
.wpfc-price-was{text-decoration:line-through;opacity:.5}
.wpfc-price-msrp{font-size:12px;opacity:.6}
.wpfc-excerpt{color:#444;margin:8px 0 18px}

.wpfc-attrs{display:grid;gap:18px;margin:18px 0}
.wpfc-attr{border:1px solid #eee;border-radius:12px;padding:12px;background:#fff}
.wpfc-attr.is-hidden{display:none}
.wpfc-attr-label{font-weight:600}
.req{color:#e11d48}

.wpfc-radio-group{display:flex;gap:12px;margin-top:8px}
.wpfc-radio input:disabled + span{opacity:.4}
.wpfc-buttons{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}
.wpfc-option{border:1px solid #ddd;background:#fff;padding:8px 12px;border-radius:10px;cursor:pointer}
.wpfc-option.is-active{border-color:#2563eb;box-shadow:0 0 0 2px rgba(37,99,235,.15)}
.wpfc-option.is-disabled{opacity:.45;pointer-events:none}

.wpfc-swatches{display:flex;gap:6px;margin-top:8px;flex-wrap:wrap}
.wpfc-swatch{width:36px;height:36px;border-radius:999px;border:1px solid #ddd;display:flex;align-items:center;justify-content:center;cursor:pointer;outline:none;background:#fff}
.wpfc-swatch img{border-radius:999px;}


.wpfc-swatch.is-active{box-shadow:0 0 0 2px #2563eb}
.wpfc-swatch.is-disabled{opacity:.45;pointer-events:none}
.swatch-color{display:block;width:24px;height:24px;border-radius:999px;border:1px solid #e5e5e5}

.wpfc-attr select.wpfc-input{margin-top:8px;width:100%;padding:8px 10px;border-radius:10px;border:1px solid #ddd}
.wpfc-matrix table{width:100%;border-collapse:separate;border-spacing:0 8px;margin-top:8px}
.wpfc-matrix-row{background:#fafafa;border:1px solid #eee;border-radius:10px}
.wpfc-matrix-row td{padding:0px}
.wpfc-matrix-row.is-disabled{opacity:.45}
.wpfc-matrix-qty{width:100px;padding:8px 10px;border-radius:10px;border:1px solid #ddd}
.wpfc-min-qty-badge{display:inline-block;margin-left:6px;padding:2px 6px;background:#2563eb;color:#fff;border-radius:4px;font-size:11px;font-weight:600;white-space:nowrap}

.wpfc-cta{display:flex;gap:12px;align-items:center;margin-top:6px}
.wpfc-qty{width:120px;padding:10px;border-radius:12px;border:1px solid #ddd}
.wpfc-btn-primary{appearance:none;border:0;background:#4069D2;color:#fff;border-radius:12px;padding:12px 18px;font-weight:600;cursor:pointer}
.wpfc-btn-primary:hover{background:#43588a;}

/* Tabs */
.wpfc-tabs{margin-top:36px}
.wpfc-tab-nav{display:flex;gap:10px;list-style:none;padding:0;margin:0 0 12px;border-bottom:1px solid #eee;flex-wrap:wrap}
.wpfc-tab-nav a{display:inline-block;padding:10px 12px;border-radius:10px 10px 0 0;color:#111;text-decoration:none}
.wpfc-tab-nav a.active{background:#fff;border:1px solid #eee;border-bottom-color:#fff}
.wpfc-tab{background:#fff;border:1px solid #eee;border-radius:0 10px 10px 10px;padding:16px}

/* Linked products */
.wpfc-linked{margin-top:36px}
.wpfc-linked-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:16px;list-style:none;padding:0;margin:12px 0 0}
@media (max-width:980px){.wpfc-linked-grid{grid-template-columns:repeat(2,1fr)}}
.wpfc-linked-grid li a{display:block;text-decoration:none;color:inherit}
.wpfc-linked-grid img{width:100%;height:150px;object-fit:cover;border-radius:12px;border:1px solid #eee;display:block}
.wpfc-linked-grid span{display:block;margin-top:6px;font-size:14px}

/* Toast */
.wpfc-toast{position:fixed;left:50%;bottom:18px;transform:translateX(-50%);background:#111;color:#fff;padding:10px 14px;border-radius:12px;opacity:0;pointer-events:none;transition:opacity .2s}
.wpfc-toast.show{opacity:1}



.wpfc-attr.has-error .wpfc-attr-label,
.wpfc-attr.has-error .wpfc-input,
.wpfc-attr.has-error .wpfc-option,
.wpfc-attr.has-error .wpfc-swatch {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}



.wpfc-opt-price {
  margin-left: .35rem;
  font-size: .875em;
  opacity: .75;
  display: inline-block;
}
.wpfc-opt-price.suppressed {
  opacity: .4;
  text-decoration: line-through;
}
.wpfc-opt-price--select {
  margin-left: .5rem;
}
.wpfc-combo-note {
  margin-top: .25rem;
  font-size: .875em;
  opacity: .85;
}



/* Minimal wrapper for swatch + price hint */
.wpfc-swatch-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

/* The little price delta */
.wpfc-opt-hint {
  font-size: 11px;
  line-height: 1;
  margin-top: 4px;
  opacity: .75;
  white-space: nowrap;
}

/* Dim when overridden by a combo */
.wpfc-opt-hint.suppressed {
  opacity: .45;
  text-decoration: line-through;
}

/* Select hint stays under the select */
.wpfc-opt-hint--select {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  opacity: .75;
}



/* matrix qty input slimmer */
.wpfc-matrix .cell-qty input.wpfc-matrix-qty {
  width: 72px;      /* was too wide; adjust as you like */
  padding: 6px 8px;
}

/* center tier headers and numbers */
.wpfc-matrix thead th.wpfc-mtx-tier {
  text-align: center;
  white-space: nowrap;
}
.wpfc-matrix thead th.wpfc-mtx-tier .amt { font-weight: 600; display:block; }
.wpfc-matrix thead th.wpfc-mtx-tier .sub { font-size: 12px; opacity: .75; }

/* highlight active tier column */
.wpfc-matrix thead th.wpfc-mtx-tier.is-active { background: rgba(0,0,0,.06); }
.wpfc-matrix tbody td.cell-tier.is-active { font-weight: 600; }


/* Base polish (works desktop+mobile) */
.wpfc-matrix-table td,
.wpfc-matrix-table th { white-space: nowrap; }
.wpfc-matrix-qty { width: 4.5rem; max-width: 30vw; }

/* Mobile cards */
@media (max-width: 640px) {
  .wpfc-matrix-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
  .wpfc-matrix-table thead { display: none; }              /* hide header */
  .wpfc-matrix-table tbody tr {                            /* card shell */
    display: grid;
    grid-template-columns: 1fr;                            /* one column */
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 0 rgba(0,0,0,.06);
    padding: 10px 12px;
  }
  .wpfc-matrix-table tbody td {                            /* reset cells */
    display: grid;
    grid-template-columns: 7rem 1fr;                       /* label | value */
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    border: 0;
  }

  /* Row header (option label) sits as a title bar */
  .wpfc-matrix-table .cell-label {
    grid-template-columns: 1fr;
    font-weight: 600;
    padding-bottom: 4px;
  }

  /* pseudo-labels for fields (shown on the left column) */
  .wpfc-matrix-table .cell-unit::before   { content: "Price";  color:#666; }
  .wpfc-matrix-table .cell-tier[data-label]::before { content: attr(data-label); color:#666; }
  .wpfc-matrix-table .cell-stock::before  { content: "Stock";  color:#666; }
  .wpfc-matrix-table .cell-qty::before    { content: "Qty";    color:#666; }
  .wpfc-matrix-table .cell-line::before   { content: "Line";   color:#666; }

  /* Line total subtle */
  .wpfc-matrix-table .cell-line { font-weight: 600; }

  /* tighten inputs and stop overflowing $ */
  .wpfc-matrix-table .cell-unit,
  .wpfc-matrix-table .cell-tier,
  .wpfc-matrix-table .cell-stock,
  .wpfc-matrix-table .cell-line { justify-content: end; }
}



/* MOBILE MATRIX CARDS */
@media (max-width: 768px){
  .wpfc-matrix-table thead { display: none; }

  .wpfc-matrix-table,
  .wpfc-matrix-table tbody,
  .wpfc-matrix-table tr,
  .wpfc-matrix-table td {
    display: block;
    width: 100%;
  }

  .wpfc-matrix-row {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 14px 16px;
    margin: 12px 0;
    box-shadow: 0 1px 2px rgba(0,0,0,.03);
  }

  .wpfc-matrix-row .cell-label {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    padding: 0;
  }

  .wpfc-matrix-row td[data-label]{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
  }
  .wpfc-matrix-row td[data-label]::before{
    content: attr(data-label);
    opacity: .7;
    margin-right: 12px;
  }

  .wpfc-matrix-row .cell-qty input.wpfc-matrix-qty{
    width: 90px;      /* keep it comfy */
    max-width: 40%;
  }

  .wpfc-matrix-row .cell-line { padding-top: 8px; }
}

/* Price Breaks Table (for non-matrix products) */
.wpfc-price-breaks {
  margin: 16px 0;
  padding: 16px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 12px;
}

.wpfc-price-breaks table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 12px;
}

.wpfc-price-breaks thead {
  background: #fff;
}

.wpfc-price-breaks thead th {
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid #e5e5e5;
  font-size: 14px;
  color: #333;
}

.wpfc-price-breaks tbody tr {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
}

.wpfc-price-breaks tbody tr:last-child {
  border-bottom: none;
}

.wpfc-price-breaks tbody td {
  padding: 10px 12px;
  font-size: 14px;
  text-align: center;
}

.wpfc-price-breaks tbody td:first-child {
  font-weight: 500;
  color: #555;
}

.wpfc-price-breaks tbody td:last-child {
  font-weight: 600;
  color: #2563eb;
}

.wpfc-price-breaks .note {
  display: block;
  font-size: 12px;
  color: #666;
  font-style: italic;
  margin-top: 8px;
}

/* Mobile responsive styling for price breaks */
@media (max-width: 640px) {
  .wpfc-price-breaks {
    padding: 12px;
  }

  .wpfc-price-breaks table {
    font-size: 13px;
  }

  .wpfc-price-breaks thead th,
  .wpfc-price-breaks tbody td {
    padding: 8px 10px;
  }
}



/* Make video thumbs the same footprint as image thumbs */
.wpfc-thumbs .wpfc-video-thumb{
  position: relative;
  display: inline-block;
  width: 64px;              /* match your thumb width */
  height: 64px;             /* match your thumb height */
  border-radius: 8px;       /* match your style */
  overflow: hidden;
  background: #f7f7f7;
}
.wpfc-thumbs .wpfc-video-thumb img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wpfc-thumbs .wpfc-video-thumb .wpfc-play{
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.8); 
  width: 48px; height: 48px;                   
  pointer-events: none;
}

.wpfc-video-modal .swal2-html-container{
  padding:0 !important;
}
.wpfc-embed-wrap{
  position:relative;
  width:100%;
  /* 16:9 */
  padding-bottom:56.25%;
}
.wpfc-embed-wrap iframe{
  position:absolute; inset:0; width:100%; height:100%;
}


.wpfc-badges { margin: 6px 0 10px; display:flex; flex-wrap:wrap; gap:6px; }
.wpfc-badge-term {
  display:inline-block; padding:4px 8px; border:1px solid #e3e3e3; border-radius:999px;
  font-size:12px; line-height:1; text-decoration:none;
}
.wpfc-badge--brand { background:#f7faff; border-color:#cfe3ff; }
.wpfc-badge--cat   { background:#f9f9f9; border-color:#e3e3e3; }



/* Big, square image swatches (single & multi) */
.wpfc-attr[data-display="image_swatch"] .wpfc-swatch,
.wpfc-attr[data-display="image_swatch_multi"] .wpfc-swatch {
  width: 170px;
  height: 170px;
  border-radius: 10px;         /* not a circle */
}
.wpfc-attr[data-display="image_swatch"] .wpfc-swatch img,
.wpfc-attr[data-display="image_swatch_multi"] .wpfc-swatch img {
  border-radius: 10px;         /* match container */
}

/* Keep COLOR swatches small & circular (your defaults already do this) */

/* Removed .wpfc-swatch-title — color names now shown on hover via title attribute */


.wpfc-attr-desc { margin: .35rem 0 .5rem; font-size: .95em; opacity: .9; }
