/* =========================================================
   TCS Product Page — Custom Single Product Design
   ---------------------------------------------------------
   Scoped under .tcs-product-wrap so it never leaks into the
   rest of the Porus theme (shop grid, cart, other page types).

   WHERE THIS GOES:
     wp-content/themes/porus/assets/css/tcs-product-page.css
   Then enqueued only on single product pages — see
   tcs-functions-snippet.php (tcs_enqueue_product_assets).

   COLOR NOTE: the original design mockup's :root mislabelled
   --green as a red/terracotta (#a02d27). The real teal accent
   used correctly throughout (provenance bar, grade table header,
   tab underline) is #1E4D45 — kept here as --tcs-deep-green.
   ========================================================= */

.tcs-product-wrap {
  --brown: #6c5547;
  --brown-mid: #896c64;
  --tan: #a02d27;
  --tan-light: #c03830;
  --tan-bg: #fefcfb;
  --cream: #fefcfb;
  --parchment: #faeee8;
  --parchment-mid: #f4dece;
  --border: #d4b09a;
  --border-light: #e4c8b8;
  --green-light: #fefcfb;
  --green-border: #d4b09a;
  --gold: #f4c47c;
  --gold-light: #fdf0d8;
  --gold-border: #e8b060;
  --charcoal: #615b5d;
  --text: #3a2e2a;
  --muted: #615b5d;
  --muted-light: #896c64;
  --white: #ffffff;
  --tcs-deep-green: #1e4d45;
  --tcs-deep-green-light: #7AAA88;
  --font-d: 'Berkshire Swash', Georgia, serif;
  --font-b: 'Lora', Georgia, serif;
  --r: 4px;
  --r-lg: 6px;

 font-family: var(--font-b);
  color: var(--text);
  line-height: 1.6;
  background: var(--cream);
  /* Breathing room below the header's gold rule before content starts */
  padding-top: 28px;
}
.tcs-product-wrap * { box-sizing: border-box; }
.tcs-product-wrap img { display: block; max-width: 100%; }
.tcs-product-wrap button { font-family: var(--font-b); cursor: pointer; }
.tcs-product-wrap a { text-decoration: none; }

/* ── PRODUCT HERO WRAPPER ── */
.tcs-product-wrap .product-wrap {
  display: grid;
  grid-template-columns: 52% 48%;
  background: #fefcfb;
  overflow: hidden;
  align-items: start;
}

/* ── GALLERY ── */
.tcs-product-wrap .gallery {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #fefcfb;
  gap: 12px;
  align-self: start;
}
.tcs-product-wrap .gallery::after {
  content: '';
  position: absolute;
  top: 20px;
  bottom: 20px;
  right: 0;
  width: 1px;
  background: var(--border);
}
.tcs-product-wrap .main-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--parchment-mid);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.tcs-product-wrap .main-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.tcs-product-wrap .main-img:hover img { transform: scale(1.08); }
.tcs-product-wrap .img-ph { text-align: center; color: var(--muted-light); padding: 20px; }
.tcs-product-wrap .badge-usda {
  position: absolute; top: 12px; left: 12px;
  background: var(--brown); color: var(--gold-light);
  font-size: .68rem; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
  letter-spacing: .05em;
  display: flex; align-items: center; gap: 5px;
  z-index: 2;
}
.tcs-product-wrap .badge-grade {
  position: absolute; top: 12px; right: 12px;
  background: var(--tan); color: #fff;
  font-size: .68rem; font-weight: 600;
  padding: 4px 10px; border-radius: 20px;
  letter-spacing: .04em; border: none;
  display: flex; align-items: center; gap: 4px;
  z-index: 2;
}
.tcs-product-wrap .thumbs {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  justify-content: center;
  gap: 12px;
  padding-bottom: 2px;
  width: 100%;
}
/* Collapsed = show only the first 3 rows (15 thumbs) */
.tcs-product-wrap .thumbs.collapsed .thumb:nth-child(n+16) { display: none !important; }
.tcs-product-wrap .thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: none;
  border-radius: var(--r); overflow: hidden;
  cursor: pointer; border: 2px solid transparent;
  background: var(--parchment-mid);
  transition: border-color .15s;
  display: flex; align-items: center; justify-content: center;
}
.tcs-product-wrap .thumb.active, .tcs-product-wrap .thumb:hover { border-color: var(--tan); }
.tcs-product-wrap .thumb img { width: 100%; height: 100%; object-fit: cover; }
/* "Show all photos" toggle link */
.tcs-product-wrap .thumb-more {
  display: inline-block !important;
  margin-top: 10px !important;
  background: var(--parchment) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  color: var(--tan) !important; font-family: 'Inter', sans-serif !important;
  font-size: .8rem !important; font-weight: 600 !important; letter-spacing: .02em !important;
  cursor: pointer !important; padding: 9px 16px !important;
  line-height: 1.3 !important; height: auto !important; width: auto !important;
  text-decoration: none !important;
  text-align: center !important;
  text-transform: none !important;
  transition: border-color .15s, background .15s;
}
.tcs-product-wrap .thumb-more:hover { border-color: var(--tan) !important; background: var(--tan-bg) !important; color: var(--tan-light) !important; }
.tcs-product-wrap .mag-hint {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.45); color: #fff;
  font-size: .68rem; padding: 4px 9px; border-radius: 20px;
  font-family: 'Inter', sans-serif; pointer-events: none;
  display: flex; align-items: center; gap: 4px; letter-spacing: .04em;
  z-index: 2;
}

/* ── BUY PANEL ── */
.tcs-product-wrap .buy { padding: 28px 32px; display: flex; flex-direction: column; gap: 16px; align-self: start; margin-left: -1px; }
.tcs-product-wrap .eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tcs-product-wrap .tag {
  background: var(--parchment-mid); color: var(--brown);
  font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 3px; border: 1px solid var(--border);
}
.tcs-product-wrap .origin { font-size: .75rem; color: var(--brown-mid); font-weight: 500; display: flex; align-items: center; gap: 5px; }
.tcs-product-wrap .origin::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; flex-shrink: 0; }

.tcs-product-wrap h1.prod-title {
  font-family: var(--font-d);
  font-size: 1.9rem; font-weight: 400; line-height: 1.25;
  color: var(--brown); letter-spacing: .01em; margin: 0;
}
.tcs-product-wrap .tagline { font-size: .85rem; color: var(--muted); line-height: 1.7; padding-left: 12px; border-left: 3px solid var(--gold); margin: 0; }

.tcs-product-wrap .proof { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tcs-product-wrap .stars { color: var(--gold); letter-spacing: 2px; font-size: .95rem; }
.tcs-product-wrap .rev-count { font-size: .78rem; color: var(--muted); }
.tcs-product-wrap .amz-badge {
  font-size: .72rem; background: var(--parchment); border: 1px solid var(--border);
  padding: 3px 9px; border-radius: 3px; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
}

.tcs-product-wrap hr.div { border: none; border-top: 1px solid var(--border-light); margin: 0; }

.tcs-product-wrap .size-hd { font-size: .74rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.tcs-product-wrap .size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tcs-product-wrap .sz {
  border: 1.5px solid var(--border); border-radius: 8px; padding: 9px 4px 8px;
  text-align: center; background: var(--white);
  display: flex; flex-direction: column; gap: 2px;
  transition: border-color .15s, background .15s;
}
.tcs-product-wrap .sz:hover { border-color: var(--tan); background: var(--tan-bg); }
.tcs-product-wrap .sz.active { border-color: #a02d27; background: #fbecea; }
.tcs-product-wrap .sz .w { font-size: .88rem; font-weight: 600; color: var(--brown); }
.tcs-product-wrap .sz .oz { font-size: .68rem; color: var(--muted); }
.tcs-product-wrap .sz .p { font-size: 1rem; color: var(--tan); font-weight: 700; margin-top: 2px; }

.tcs-product-wrap .price-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tcs-product-wrap .price { font-family: var(--font-d); font-size: 2rem; font-weight: 500; color: var(--brown); }
.tcs-product-wrap .price-note { font-size: .8rem; color: var(--muted); }
.tcs-product-wrap .ship-note { font-size: .78rem; color: var(--tan); font-weight: 500; }

.tcs-product-wrap .trust { display: flex; gap: 8px; flex-wrap: wrap; }
.tcs-product-wrap .tb {
  display: flex; align-items: center; gap: 5px;
  background: var(--gold-light); border: 1px solid var(--gold-border);
  border-radius: 8px; padding: 5px 10px; font-size: .73rem; color: var(--brown); font-weight: 500;
}
.tcs-product-wrap .tb svg { flex-shrink: 0; }

.tcs-product-wrap .ctas { display: flex; flex-direction: column; gap: 9px; }
.tcs-product-wrap .btn-add {
  width: 100%; background: var(--tan); color: #fff; border: none;
  padding: 13px 20px; border-radius: 8px; font-size: .92rem; font-weight: 600;
  letter-spacing: .02em; transition: background .15s;
}
.tcs-product-wrap .btn-add:hover { background: var(--tan-light); }
.tcs-product-wrap .btn-amz {
  width: 100%; background: var(--white); color: var(--brown);
  border: 1.5px solid var(--border); padding: 11px 20px; border-radius: var(--r);
  font-size: .88rem; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 7px;
  transition: border-color .15s, background .15s;
}
.tcs-product-wrap .btn-amz:hover { border-color: var(--tan); background: var(--tan-bg); }
.tcs-product-wrap .btn-amz svg { opacity: .6; }

.tcs-product-wrap .ship-box {
  background: var(--parchment); border-radius: 8px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 9px; border: 1px solid var(--border);
}
.tcs-product-wrap .sr { display: flex; align-items: flex-start; gap: 9px; font-size: .78rem; color: var(--muted); line-height: 1.55; }
.tcs-product-wrap .sr svg { flex-shrink: 0; margin-top: 1px; color: var(--tan); }
.tcs-product-wrap .sr strong { color: var(--text); font-weight: 500; }

/* ── Quantity selector ── */
.tcs-product-wrap .qty-wrap { display: flex; align-items: center; gap: 0; border: 1.5px solid var(--border); border-radius: 8px; overflow: hidden; width: fit-content; background: var(--cream); }
.tcs-product-wrap .qty-btn { width: 40px; height: 40px; background: none; border: none; font-size: 1.2rem; color: var(--brown); display: flex; align-items: center; justify-content: center; font-family: 'Inter', sans-serif; transition: background .15s; flex-shrink: 0; line-height: 1; }
.tcs-product-wrap .qty-btn:hover { background: #faeae4; }
.tcs-product-wrap .qty-input { width: 48px; text-align: center; border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border); font-size: .95rem; font-weight: 600; color: var(--brown); font-family: 'Inter', sans-serif; background: var(--cream); height: 40px; padding: 0; -moz-appearance: textfield; }
.tcs-product-wrap .qty-input::-webkit-outer-spin-button, .tcs-product-wrap .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.tcs-product-wrap .qty-input:focus { outline: none; border-color: var(--tan); }
.tcs-product-wrap .qty-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tcs-product-wrap .qty-label { font-size: .74rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-family: 'Inter', sans-serif; margin-bottom: 8px; }

/* ── PROVENANCE BAR ── */
.tcs-product-wrap .prov-bar {
  background: var(--tcs-deep-green); color: #E8F0EB;
  padding: 18px 40px; display: grid; grid-template-columns: repeat(4, 1fr);
  text-align: center; border-top: 3px solid var(--tcs-deep-green-light); border-bottom: 3px solid var(--tcs-deep-green-light);
}
.tcs-product-wrap .pi { padding: 0 16px; border-right: 1px solid rgba(250,246,240,.15); }
.tcs-product-wrap .pi:last-child { border-right: none; }
.tcs-product-wrap .pi-num { font-family: var(--font-d); font-size: 2rem; font-style: normal; color: var(--gold); letter-spacing: .02em; line-height: 1; font-weight: 400; }
.tcs-product-wrap .pi-lbl { font-size: .72rem; color: rgba(253,240,216,.65); font-family: 'Inter', sans-serif; letter-spacing: .07em; text-transform: uppercase; margin-top: 5px; line-height: 1.4; }

/* ── TABS ── */
.tcs-product-wrap .tabs-wrap { background: #fefcfb; padding: 0 40px; }
.tcs-product-wrap .tab-bar { display: flex; border-bottom: 2px solid var(--border); overflow-x: auto; gap: 0; background: var(--cream); scrollbar-width: none; }
.tcs-product-wrap .tab-bar::-webkit-scrollbar { display: none; }
.tcs-product-wrap .tb-btn {
  padding: 15px 22px; font-size: .78rem; font-weight: 500; color: var(--muted);
  background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1.5px;
  white-space: nowrap; letter-spacing: .07em; text-transform: uppercase;
  font-family: 'Inter', sans-serif; transition: color .15s;
}
.tcs-product-wrap .tb-btn.on { color: var(--tcs-deep-green); border-bottom-color: var(--brown); }
.tcs-product-wrap .tb-btn:hover { color: var(--tan); }
.tcs-product-wrap .tc { display: none; padding: 36px 0 48px; }
.tcs-product-wrap .tc.on { display: block; background: #fefcfb; }

/* Why grid */
.tcs-product-wrap .why-g { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }
.tcs-product-wrap .wc { background: var(--parchment); border-radius: 10px; padding: 22px; border: 1px solid var(--border); }
.tcs-product-wrap .wc-ic { width: 38px; height: 38px; background: var(--brown); border-radius: var(--r); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; color: var(--tan-bg); }
.tcs-product-wrap .wc h3 { font-family: 'Lora', Georgia, serif; font-size: 1rem; color: var(--brown); margin: 0 0 7px; font-weight: 600; letter-spacing: .01em; }
.tcs-product-wrap .wc p { font-size: .82rem; color: var(--muted); line-height: 1.75; margin: 0; }
.tcs-product-wrap .coumarin { background: var(--gold-light); border: 1px solid var(--gold-border); border-radius: 10px; padding: 22px 26px; display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: center; }
.tcs-product-wrap .co-num { font-family: var(--font-d); font-size: 2.6rem; font-style: normal; color: var(--tcs-deep-green); line-height: 1; font-weight: 400; text-align: center; }
.tcs-product-wrap .co-unit { font-size: .7rem; color: var(--brown-mid); font-family: 'Inter', sans-serif; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-top: 4px; text-align: center; }
.tcs-product-wrap .co-text h4 { font-size: .88rem; font-weight: 600; color: var(--tan); margin: 0 0 5px; }
.tcs-product-wrap .co-text p { font-size: .8rem; color: var(--muted); line-height: 1.75; margin: 0; }

/* Use cases */
.tcs-product-wrap .use-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.tcs-product-wrap .uc { background: var(--parchment); border-radius: 10px; padding: 18px; border: 1px solid var(--border); text-align: center; }
.tcs-product-wrap .uc-em { font-size: 1.6rem; margin-bottom: 8px; }
.tcs-product-wrap .uc h4 { font-size: .83rem; font-weight: 600; color: var(--brown); margin: 0 0 5px; }
.tcs-product-wrap .uc p { font-size: .77rem; color: var(--muted); line-height: 1.65; margin: 0; }
.tcs-product-wrap .tip-box { background: var(--parchment); border-radius: 8px; padding: 14px 16px; border: 1px solid var(--border); font-size: .8rem; color: var(--muted); line-height: 1.7; }
.tcs-product-wrap .tip-box strong { color: var(--brown); font-weight: 600; }

/* Grade table */
.tcs-product-wrap .intro-txt { font-size: .86rem; color: var(--muted); line-height: 1.8; max-width: 660px; margin-bottom: 22px; }
.tcs-product-wrap table.gtbl { width: 100%; border-collapse: collapse; font-size: .82rem; }
.tcs-product-wrap .gtbl th { background: var(--tcs-deep-green); color: #C8DCC8; padding: 10px 14px; text-align: left; font-weight: 500; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
.tcs-product-wrap .gtbl th:first-child { border-radius: var(--r) 0 0 0; }
.tcs-product-wrap .gtbl th:last-child { border-radius: 0 var(--r) 0 0; }
.tcs-product-wrap .gtbl td { padding: 10px 14px; border-bottom: 1px solid var(--border-light); color: var(--muted); }
.tcs-product-wrap .gtbl tr.hl td { background: var(--tan-bg); color: #3D3228; font-weight: 600; }
.tcs-product-wrap .gtbl td:first-child { color: var(--brown); font-weight: 500; }
.tcs-product-wrap .src-note { font-size: .72rem; color: var(--muted-light); margin-top: 10px; }

/* Certs */
.tcs-product-wrap .cert-g { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tcs-product-wrap .cert-c { background: var(--parchment); border: 1px solid var(--border); border-radius: 10px; padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.tcs-product-wrap .cert-logo { width: 50px; height: 50px; flex-shrink: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--r); display: flex; align-items: center; justify-content: center; font-size: .62rem; color: var(--brown-mid); font-weight: 700; text-align: center; line-height: 1.3; padding: 4px; }
.tcs-product-wrap .cert-body h4 { font-size: .88rem; font-weight: 600; color: var(--brown); margin: 0 0 5px; }
.tcs-product-wrap .cert-body p { font-size: .78rem; color: var(--muted); line-height: 1.7; margin: 0; }
.tcs-product-wrap .cert-id { font-size: .7rem; color: var(--tan); font-weight: 500; margin-top: 7px; }

/* Amazon review bridge */
.tcs-product-wrap .rev-amz-bridge { display: grid; grid-template-columns: 200px 1fr; gap: 32px; background: var(--parchment); border: 1px solid var(--border); border-radius: 10px; padding: 24px 28px; align-items: center; margin-bottom: 28px; }
.tcs-product-wrap .rev-big-stars { font-size: 1.8rem; color: var(--gold); letter-spacing: 3px; line-height: 1; margin-bottom: 6px; }
.tcs-product-wrap .rev-amz-score { font-family: var(--font-d); font-size: 2.4rem; color: var(--brown); line-height: 1; }
.tcs-product-wrap .rev-amz-score span { font-size: 1rem; color: var(--muted); font-family: 'Lora', serif; }
.tcs-product-wrap .rev-amz-count { font-size: .78rem; color: var(--muted); font-family: 'Inter', sans-serif; margin: 4px 0 14px; }
.tcs-product-wrap .rev-amz-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--tcs-deep-green); color: #E8F0EB; border: none; padding: 9px 18px; border-radius: 8px; font-size: .82rem; font-weight: 500; font-family: 'Inter', sans-serif; text-decoration: none; transition: background .15s; }
.tcs-product-wrap .rev-amz-btn:hover { background: var(--brown-mid); }

/* ── USES CHIPS ── */
.tcs-product-wrap.chips-sec, .chips-sec { padding: 28px 40px; background: #fefcfb; border-top: 1px solid var(--border); }
.chips-sec .chips-lbl { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.chips-sec .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-sec .chip { background: #fefcfb; border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: .78rem; color: var(--brown); font-family: 'Inter', sans-serif; transition: border-color .15s, background .15s; }
.chips-sec .chip:hover { border-color: var(--tan); background: var(--tan-bg); }

/* ── RELATED ── */
.tcs-product-wrap .related { padding: 44px 40px; background: #fefcfb; border-top: 1px solid var(--border); }
.tcs-product-wrap .sec-hd { font-family: var(--font-d); font-size: 1.7rem; color: var(--brown); margin: 0 0 20px; font-weight: 400; letter-spacing: .01em; }
.tcs-product-wrap .rel-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tcs-product-wrap .rel-c { background: #fefcfb; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); transition: transform .18s, box-shadow .18s; cursor: pointer; display: block; }
.tcs-product-wrap .rel-c:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(26,20,0,.12); }
.tcs-product-wrap .rel-img { aspect-ratio: 1; background: var(--parchment-mid); }
.tcs-product-wrap .rel-body { padding: 12px 14px; }
.tcs-product-wrap .rel-name { font-size: .82rem; font-weight: 500; color: var(--brown); margin-bottom: 4px; line-height: 1.4; }
.tcs-product-wrap .rel-price { font-size: .83rem; color: var(--tan); font-weight: 600; }

/* ── Native WooCommerce reviews inside the Reviews tab ──
   Styles WooCommerce's real review/comment form to match the
   mockup. The native form is used (not a custom one) so reviews
   actually save; these rules give it the TCS look. !important
   is needed to beat the Porus theme's global form styling. */
#tc-revs #reviews { background: transparent; }

/* "Reviews" heading + "no reviews yet" line */
#tc-revs .woocommerce-Reviews-title {
  font-family: 'Berkshire Swash', Georgia, serif !important;
  font-size: 1.4rem !important; color: var(--brown) !important;
  font-weight: 400 !important; margin-bottom: 14px !important;
}
#tc-revs .woocommerce-noreviews {
  font-size: .86rem; color: var(--muted);
  background: var(--parchment); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px 16px; margin-bottom: 24px;
}

/* "Be the first to review…" reply title -> form heading, left aligned */
#tc-revs .comment-reply-title {
  font-family: 'Berkshire Swash', Georgia, serif !important;
  font-size: 1.25rem !important; color: var(--brown) !important;
  font-weight: 400 !important; text-align: left !important;
  display: block; margin-bottom: 18px !important;
}
#tc-revs .comment-reply-title a { font-size: .78rem; font-family: 'Inter', sans-serif; color: var(--muted); }

/* Field labels */
#tc-revs .comment-form-rating label,
#tc-revs .comment-form-author label,
#tc-revs .comment-form-email label,
#tc-revs .comment-form-comment label {
  font-size: .74rem !important; font-weight: 600 !important;
  letter-spacing: .06em !important; text-transform: uppercase !important;
  color: var(--muted) !important; font-family: 'Inter', sans-serif !important;
  display: block; margin-bottom: 6px;
}

/* Star rating picker */
#tc-revs p.stars a { color: var(--gold) !important; }

/* Text inputs + textarea */
#tc-revs #commentform input[type="text"],
#tc-revs #commentform input[type="email"],
#tc-revs #commentform textarea {
  border: 1.5px solid var(--border) !important; border-radius: 8px !important;
  padding: 10px 13px !important; font-size: .88rem !important;
  font-family: 'Lora', Georgia, serif !important; color: var(--brown) !important;
  background: var(--cream) !important; width: 100% !important;
}
#tc-revs #commentform input:focus,
#tc-revs #commentform textarea:focus { outline: none !important; border-color: var(--tan) !important; }

/* Submit button — TCS red, compact (line-height reset beats theme's 46px) */
#tc-revs #respond .form-submit input#submit,
#tc-revs #respond .form-submit input.submit {
  background: var(--tan) !important; color: #fff !important; border: none !important;
  padding: 12px 28px !important; border-radius: 8px !important;
  font-size: .92rem !important; font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important; letter-spacing: .03em !important;
  text-transform: uppercase; line-height: 1.4 !important; height: auto !important; width: auto !important;
}
#tc-revs #respond .form-submit input#submit:hover,
#tc-revs #respond .form-submit input.submit:hover { background: var(--tan-light) !important; }

/* ── LIGHTBOX ── */
.tcs-lightbox { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.92); align-items: center; justify-content: center; cursor: zoom-out; }
.tcs-lightbox.open { display: flex; }
.tcs-lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; border-radius: 12px; box-shadow: 0 8px 60px rgba(0,0,0,.6); cursor: default; }
.tcs-lightbox-close { position: absolute; top: 20px; right: 24px; color: #fff; font-size: 2rem; font-weight: 300; line-height: 1; cursor: pointer; opacity: .8; background: none; border: none; font-family: 'Inter', sans-serif; transition: opacity .15s; z-index: 10000; }
.tcs-lightbox-close:hover { opacity: 1; }
.tcs-lightbox-prev, .tcs-lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2.5rem; font-weight: 300; line-height: 1; cursor: pointer; opacity: .7; background: rgba(255,255,255,.08); border: none; border-radius: 50%; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; font-family: 'Inter', sans-serif; transition: opacity .15s, background .15s; }
.tcs-lightbox-prev { left: 20px; }
.tcs-lightbox-next { right: 20px; }
.tcs-lightbox-prev:hover, .tcs-lightbox-next:hover { opacity: 1; background: rgba(160,45,39,.3); }
.tcs-lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.6); font-size: .8rem; font-family: 'Inter', sans-serif; letter-spacing: .06em; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .tcs-product-wrap .product-wrap { grid-template-columns: 1fr; }
  .tcs-product-wrap .gallery { position: relative; top: 0; height: auto; min-height: 360px; }
  .tcs-product-wrap .buy { padding: 24px 20px; }
  .tcs-product-wrap .why-g, .tcs-product-wrap .cert-g { grid-template-columns: 1fr; }
  .tcs-product-wrap .use-g { grid-template-columns: 1fr 1fr; }
  .tcs-product-wrap .rel-g { grid-template-columns: 1fr 1fr; }
  .tcs-product-wrap .tabs-wrap { padding: 0 20px; }
}
@media (max-width: 540px) {
  .tcs-product-wrap .size-grid { grid-template-columns: 1fr 1fr; }
  .tcs-product-wrap .use-g { grid-template-columns: 1fr; }
  .tcs-product-wrap h1.prod-title { font-size: 1.4rem; }
  .tcs-product-wrap .rel-g { grid-template-columns: 1fr 1fr; }
  .tcs-product-wrap .prov-bar { padding: 20px; gap: 16px 0; }
}
@media (prefers-reduced-motion: reduce) { .tcs-product-wrap * { transition: none !important; } }

/* =========================================================
   THEME OVERRIDE FIXES
   ---------------------------------------------------------
   The Porus/g5-shop theme applies a global rounded border-
   radius to ALL <button> elements (--g5-btn-border-radius),
   which turns our flat tab buttons into pills and rounds
   other controls. These rules reset our buttons to the
   intended shapes. Kept at the end so they win on order.
   ========================================================= */

/* Tab buttons must be flat, full-height, not pills */
.tcs-product-wrap .tab-bar .tb-btn,
.tcs-product-wrap button.tb-btn {
  border-radius: 0 !important;
  width: auto !important;
  background: none !important;
  box-shadow: none !important;
  text-transform: uppercase;
}

/* Size buttons: gentle rounded rectangle, not a pill.
   line-height reset stops the theme's 46px button line-height
   from inflating the stacked-text button to ~160px tall.
   Text-transform reset keeps the unit labels (oz, g) lowercase
   instead of the theme's global uppercase on buttons. */
.tcs-product-wrap .size-grid button.sz {
  border-radius: 8px !important;
  width: auto !important;
  line-height: 1.3 !important;
  height: auto !important;
  padding: 7px 4px 6px !important;
  text-transform: none !important;
}

/* Quantity +/- buttons: square within the stepper */
.tcs-product-wrap .qty-wrap button.qty-btn {
  border-radius: 0 !important;
  width: 40px !important;
  min-width: 40px !important;
  flex: 0 0 40px !important;
  padding: 0 !important;
}

/* Quantity number input: square box, not the theme's rounded pill */
.tcs-product-wrap .qty-wrap { width: fit-content !important; }
.tcs-product-wrap input.qty-input {
  border-radius: 0 !important;
  width: 48px !important;
  min-width: 48px !important;
  flex: 0 0 48px !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: 1.5px solid var(--border) !important;
  border-right: 1.5px solid var(--border) !important;
}

/* "CHOOSE SIZE" label must use Inter like the other small labels,
   not inherit the theme/body serif (Lora). */
.tcs-product-wrap .size-hd {
  font-family: 'Inter', sans-serif !important;
}

/* Add to Cart keeps its 8px radius, not the theme pill.
   line-height/height reset stops the theme's 46px button
   line-height from making the button ~72px tall. Text-transform
   reset beats the theme's global uppercase rule on buttons. */
.tcs-product-wrap .ctas button.btn-add {
  border-radius: 8px !important;
  width: 100% !important;
  line-height: 1.2 !important;
  height: auto !important;
  padding: 10px 20px !important;
  text-transform: none !important;
}

/* Amazon review bridge button + Amazon buy button keep their own radius */
.tcs-product-wrap .rev-amz-btn { border-radius: 8px !important; }
.tcs-product-wrap a.btn-amz { border-radius: var(--r) !important; line-height: 1.4 !important; height: auto !important; }

/* =========================================================
   PAGE-LEVEL GAP FIX
   ---------------------------------------------------------
   The Porus theme's #primary-content wrapper carries a fixed
   120px bottom padding on every page. On our full-height
   single-product template this shows as a large dead band of
   whitespace before the footer. Scoped to single product
   pages only (body.single-product), via WordPress' own
   body class, so other page types keep their original spacing.
   ========================================================= */
body.single-product #primary-content {
  padding-bottom: 0 !important;
}

/* ── Section heading titles match the design ──
   Make the g5element_heading titles in the new home sections use
   Berkshire Swash in warm brown, instead of plain black. */
.tcs-cats .gel-heading-title,
.tcs-why .gel-heading-title,
.tcs-sellers .gel-heading-title,
.tcs-seller .gel-heading-title,
.tcs-story .gel-heading-title{
  font-family:'Berkshire Swash',Georgia,serif !important;
  color:#6c5547 !important;
  font-weight:400 !important;
}
