/*
Theme Name: WellTradeNet Child
Theme URI: https://welltradenet.com
Description: Child theme for welltradenet.com. EA storefront with a spec-sheet layout: every EA shows its drawdown as clearly as its profit. Requires the Kadence parent theme and WooCommerce.
Author: Mqlrobot
Template: kadence
Version: 1.0.0
Text Domain: welltradenet
*/

/* ============================================================
   1. Tokens
   ============================================================ */
:root {
  --wtn-ink: #1b2233;
  --wtn-ink-2: #4a5468;
  --wtn-ink-3: #7c8597;
  --wtn-line: #d9dee7;
  --wtn-line-2: #eceff4;
  --wtn-paper: #ffffff;
  --wtn-tint: #f3f5f9;
  --wtn-amber: #f0a020;
  --wtn-amber-2: #d98c0f;
  --wtn-risk: #b3261e;
  --wtn-risk-tint: #fbeeed;
  --wtn-display: "Bai Jamjuree", "Sarabun", system-ui, sans-serif;
  --wtn-body: "Sarabun", "Bai Jamjuree", system-ui, sans-serif;
  --wtn-max: 1120px;
  --wtn-gutter: 24px;
  --wtn-radius: 4px;
}

/* ============================================================
   2. Base inside our own containers only
   ============================================================ */
.wtn-home, .wtn-product, .wtn-disclaimer, .wtn-card {
  font-family: var(--wtn-body);
  color: var(--wtn-ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wtn-home h1, .wtn-home h2, .wtn-home h3,
.wtn-product h1, .wtn-product h2, .wtn-product h3,
.wtn-card h3, .wtn-display, .wtn-num {
  font-family: var(--wtn-display);
  color: var(--wtn-ink);
  letter-spacing: -0.005em;
}
.wtn-num { font-variant-numeric: tabular-nums; }
.wtn-home a, .wtn-product a { color: var(--wtn-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wtn-home a:hover, .wtn-product a:hover { color: var(--wtn-amber-2); }
.wtn-home p, .wtn-product p { margin: 0 0 1em; }
.wtn-home ul, .wtn-home ol, .wtn-product ul, .wtn-product ol { margin: 0 0 1em; padding-left: 1.25em; }
.wtn-home img, .wtn-product img { max-width: 100%; height: auto; display: block; }

.wtn-wrap { max-width: var(--wtn-max); margin-left: auto; margin-right: auto; padding-left: var(--wtn-gutter); padding-right: var(--wtn-gutter); }

/* Section rhythm: a 2px ink rule above every section heading is the
   one structural device used everywhere. It marks a new block of the
   datasheet, nothing else. */
.wtn-section { margin-top: 72px; }
.wtn-section > h2, .wtn-section-head > h2 {
  font-size: 26px; font-weight: 600; line-height: 1.35;
  margin: 0 0 20px; padding-top: 14px;
  border-top: 2px solid var(--wtn-ink);
}
.wtn-section h3 { font-size: 19px; font-weight: 600; margin: 0 0 10px; }
.wtn-prose { max-width: 720px; }
.wtn-prose h2, .wtn-prose h3 { margin-top: 1.4em; }
.wtn-fineprint { font-size: 14px; color: var(--wtn-ink-2); max-width: 720px; }
.wtn-lead { font-size: 20px; line-height: 1.55; color: var(--wtn-ink-2); max-width: 640px; }

/* ============================================================
   3. Buttons
   ============================================================ */
.wtn-btn, .wtn-buy .single_add_to_cart_button {
  font-family: var(--wtn-display) !important;
  font-weight: 600 !important;
  font-size: 16px !important;
  line-height: 1 !important;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 22px !important;
  border-radius: var(--wtn-radius) !important;
  text-decoration: none !important;
  border: 1.5px solid transparent !important;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color .12s ease, border-color .12s ease;
  min-height: 48px;
}
.wtn-btn-primary, .wtn-buy .single_add_to_cart_button {
  background: var(--wtn-amber) !important;
  color: var(--wtn-ink) !important;
  border-color: var(--wtn-amber) !important;
}
.wtn-btn-primary:hover, .wtn-buy .single_add_to_cart_button:hover {
  background: var(--wtn-amber-2) !important; border-color: var(--wtn-amber-2) !important; color: var(--wtn-ink) !important;
}
.wtn-btn-ghost { background: transparent; color: var(--wtn-ink) !important; border-color: var(--wtn-ink) !important; }
.wtn-btn-ghost:hover { background: var(--wtn-tint); }
.wtn-btn-block { width: 100%; }
.wtn-btn:focus-visible, .wtn-buy .single_add_to_cart_button:focus-visible,
.wtn-home a:focus-visible, .wtn-product a:focus-visible, .wtn-faq summary:focus-visible {
  outline: 3px solid var(--wtn-amber); outline-offset: 2px;
}
.wtn-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   4. The datasheet (dl) - the signature component
   ============================================================ */
.wtn-sheet { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--wtn-line); }
.wtn-sheet > dt, .wtn-sheet > dd {
  margin: 0; padding: 10px 0; border-bottom: 1px solid var(--wtn-line-2);
}
.wtn-sheet > dt { color: var(--wtn-ink-2); font-size: 15px; padding-right: 16px; }
.wtn-sheet > dd { font-family: var(--wtn-display); font-weight: 600; font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.wtn-sheet > dd.is-risk { color: var(--wtn-risk); }
.wtn-sheet > dd .wtn-sub { display: block; font-family: var(--wtn-body); font-weight: 400; font-size: 13px; color: var(--wtn-ink-3); }
.wtn-sheet-big > dt, .wtn-sheet-big > dd { padding: 14px 0; }
.wtn-sheet-big > dd { font-size: 22px; }

/* ============================================================
   5. Home: hero
   ============================================================ */
.wtn-home { padding-bottom: 96px; }
.wtn-hero { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: start; padding-top: 64px; }
.wtn-hero h1 { font-size: 44px; font-weight: 600; line-height: 1.3; margin: 0 0 20px; max-width: 14em; }
.wtn-hero .wtn-lead { margin-bottom: 28px; }
.wtn-hero-card {
  border: 1px solid var(--wtn-line); border-top: 3px solid var(--wtn-ink);
  border-radius: 0 0 var(--wtn-radius) var(--wtn-radius);
  padding: 20px 22px 18px; background: var(--wtn-paper);
}
.wtn-hero-card .wtn-hero-card-title { font-family: var(--wtn-display); font-weight: 600; font-size: 18px; margin: 0 0 2px; }
.wtn-hero-card .wtn-hero-card-cond { font-size: 13px; color: var(--wtn-ink-3); margin: 0 0 12px; }
.wtn-hero-card .wtn-sheet { border-top-color: var(--wtn-line-2); }
.wtn-hero-card-link { display: inline-block; margin-top: 14px; font-size: 15px; }

/* ============================================================
   6. Home: facts strip
   ============================================================ */
.wtn-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; border-top: 1px solid var(--wtn-line); border-bottom: 1px solid var(--wtn-line); }
.wtn-fact { padding: 22px 20px 20px; border-left: 1px solid var(--wtn-line); }
.wtn-fact:first-child { border-left: 0; padding-left: 0; }
.wtn-fact-num { font-family: var(--wtn-display); font-weight: 600; font-size: 30px; line-height: 1; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.wtn-fact-label { font-size: 14px; color: var(--wtn-ink-2); }

/* ============================================================
   7. Product grid + card (home, shop, related)
   ============================================================ */
ul.products.wtn-grid, .wtn-related ul.products {
  display: grid !important; grid-template-columns: repeat(2, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none;
}
.wtn-related ul.products { grid-template-columns: repeat(3, 1fr); gap: 24px; }
ul.products li.product.wtn-card, .wtn-related ul.products li.product.wtn-card {
  width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important;
  border: 1px solid var(--wtn-line); border-top: 3px solid var(--wtn-ink);
  border-radius: 0 0 var(--wtn-radius) var(--wtn-radius);
  background: var(--wtn-paper); display: flex; flex-direction: column; text-align: left;
}
.wtn-card-media { display: block; background: var(--wtn-tint); }
.wtn-card-media img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin: 0 !important; }
.wtn-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.wtn-card-title { font-size: 20px; font-weight: 600; margin: 0 0 4px !important; padding: 0 !important; line-height: 1.4; }
.wtn-card-title a { text-decoration: none; }
.wtn-card-tagline { font-size: 15px; color: var(--wtn-ink-2); margin: 0 0 14px; }
.wtn-card .wtn-sheet { margin-bottom: 16px; }
.wtn-card .wtn-sheet > dt, .wtn-card .wtn-sheet > dd { padding: 7px 0; font-size: 14px; }
.wtn-card .wtn-sheet > dd { font-size: 15px; }
.wtn-card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wtn-card-price { font-family: var(--wtn-display); font-weight: 600; font-size: 22px; }
.wtn-card-price .woocommerce-Price-amount { font-family: inherit; color: var(--wtn-ink); }
.wtn-card .wtn-btn { padding: 12px 18px !important; min-height: 42px; font-size: 15px !important; }

/* ============================================================
   8. Home: why / quotes / videos / faq
   ============================================================ */
.wtn-why { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.wtn-why-item { padding: 18px 0 20px; border-top: 1px solid var(--wtn-line); }
.wtn-why-item h3 { font-size: 19px; margin: 0 0 6px; }
.wtn-why-item p { margin: 0; color: var(--wtn-ink-2); font-size: 16px; }

.wtn-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wtn-quote { margin: 0; padding: 20px 22px; background: var(--wtn-tint); border-radius: var(--wtn-radius); }
.wtn-quote p { margin: 0 0 10px; font-size: 16px; }
.wtn-quote cite { font-style: normal; font-family: var(--wtn-display); font-weight: 600; font-size: 14px; color: var(--wtn-ink-2); }

.wtn-videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wtn-video { position: relative; aspect-ratio: 16 / 9; background: var(--wtn-tint); border-radius: var(--wtn-radius); overflow: hidden; }
.wtn-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wtn-video-note { margin-top: 12px; }

.wtn-faq { max-width: 760px; }
.wtn-faq details { border-bottom: 1px solid var(--wtn-line); }
.wtn-faq details:first-of-type { border-top: 1px solid var(--wtn-line); }
.wtn-faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; position: relative; font-family: var(--wtn-display); font-weight: 600; font-size: 17px; }
.wtn-faq summary::-webkit-details-marker { display: none; }
.wtn-faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 500; color: var(--wtn-ink-3); }
.wtn-faq details[open] summary::after { content: "\2013"; }
.wtn-faq .wtn-faq-a { padding: 0 0 18px; color: var(--wtn-ink-2); max-width: 680px; }

/* ============================================================
   9. Product page
   ============================================================ */
.wtn-product { padding-bottom: 120px; }
.wtn-product-top { display: grid; grid-template-columns: 7fr 5fr; grid-template-areas: "head panel" "media panel"; column-gap: 48px; row-gap: 0; align-items: start; padding-top: 40px; }
.wtn-product-head { grid-area: head; }
.wtn-product-top .wtn-media { grid-area: media; }
.wtn-product-top .wtn-panel { grid-area: panel; }
.wtn-kicker { font-family: var(--wtn-display); font-weight: 600; font-size: 14px; color: var(--wtn-ink-2); margin: 0 0 8px; }
.wtn-product h1 { font-size: 40px; font-weight: 600; line-height: 1.3; margin: 0 0 14px; }
.wtn-media { margin-top: 28px; }
.wtn-media img { border-radius: var(--wtn-radius); border: 1px solid var(--wtn-line); }
.wtn-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px; }
.wtn-media .wtn-video { margin-top: 16px; }

.wtn-panel { position: sticky; top: 24px; border: 1px solid var(--wtn-line); border-top: 3px solid var(--wtn-ink); border-radius: 0 0 var(--wtn-radius) var(--wtn-radius); padding: 22px 22px 20px; background: var(--wtn-paper); }
.wtn-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.wtn-price .woocommerce-Price-amount, .wtn-price .price { font-family: var(--wtn-display) !important; font-weight: 600 !important; font-size: 36px !important; color: var(--wtn-ink) !important; margin: 0 !important; line-height: 1; }
.wtn-price del .woocommerce-Price-amount { font-size: 20px !important; color: var(--wtn-ink-3) !important; }
.wtn-price-usd { font-size: 14px; color: var(--wtn-ink-2); }
.wtn-buy form.cart { margin: 0 0 10px !important; }
.wtn-buy .quantity { display: none !important; }
.wtn-buy .single_add_to_cart_button { width: 100%; margin: 0 !important; }
.wtn-panel .wtn-btn-ghost { width: 100%; margin: 10px 0 18px; }
.wtn-panel .wtn-sheet { margin-bottom: 14px; }
.wtn-panel-notes { margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--wtn-ink-2); }
.wtn-panel-notes li { padding: 3px 0; }
.wtn-panel-notes li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--wtn-ink-3); margin: 0 10px 2px 2px; }

.wtn-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.wtn-fit h2 { margin-bottom: 14px; }
.wtn-fit ul { list-style: none; padding: 0; margin: 0; }
.wtn-fit li { padding: 10px 0 10px 28px; border-bottom: 1px solid var(--wtn-line-2); position: relative; font-size: 16px; }
.wtn-fit li::before { content: ""; position: absolute; left: 4px; top: 18px; width: 10px; height: 10px; border-radius: 2px; background: var(--wtn-ink); }
.wtn-fit .is-no li::before { background: var(--wtn-risk); }

.wtn-conditions { font-size: 15px; color: var(--wtn-ink-2); margin: -6px 0 22px; }
.wtn-bt-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: start; }
.wtn-bt-grid figure { margin: 0; }
.wtn-bt-grid figure img { border: 1px solid var(--wtn-line); border-radius: var(--wtn-radius); }
.wtn-bt-grid figcaption { font-size: 13px; color: var(--wtn-ink-3); margin-top: 8px; }
.wtn-backtest .wtn-fineprint { margin-top: 20px; }
.wtn-backtest .wtn-report-link { font-size: 15px; }

.wtn-inputs { width: 100%; border-collapse: collapse; font-size: 15px; max-width: 860px; }
.wtn-inputs th, .wtn-inputs td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--wtn-line-2); vertical-align: top; }
.wtn-inputs th { font-family: var(--wtn-display); font-weight: 600; font-size: 14px; color: var(--wtn-ink-2); border-bottom: 1px solid var(--wtn-line); }
.wtn-inputs td:nth-child(2) { font-family: var(--wtn-display); font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wtn-inputs td:nth-child(3) { color: var(--wtn-ink-2); }

.wtn-two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.wtn-includes ul { list-style: none; padding: 0; margin: 0; }
.wtn-includes ul li { padding: 9px 0; border-bottom: 1px solid var(--wtn-line-2); font-size: 16px; }
.wtn-steps { list-style: none; padding: 0; margin: 0; counter-reset: wtn-step; }
.wtn-steps li { position: relative; padding: 8px 0 8px 44px; font-size: 16px; counter-increment: wtn-step; }
.wtn-steps li::before { content: counter(wtn-step); position: absolute; left: 0; top: 8px; width: 28px; height: 28px; border-radius: 50%; background: var(--wtn-ink); color: #fff; font-family: var(--wtn-display); font-weight: 600; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.wtn-steps-note { margin-top: 12px; font-size: 14px; color: var(--wtn-ink-2); }

.wtn-related > h2 { margin-bottom: 24px; }
.wtn-related section.related > h2 { display: none; }
.wtn-related section.related { margin: 0; }

.wtn-product .wtn-risk-note { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--wtn-line); }

/* Sticky buy bar - mobile only */
.wtn-stickybar { display: none; }

/* ============================================================
   10. Global disclaimer strip (wp_footer)
   ============================================================ */
.wtn-disclaimer { background: var(--wtn-tint); border-top: 1px solid var(--wtn-line); padding: 26px 0 30px; font-size: 13px; line-height: 1.6; color: var(--wtn-ink-2); }
.wtn-disclaimer p { margin: 0 0 8px; max-width: 900px; }
.wtn-disclaimer p:last-child { margin-bottom: 0; }
.wtn-disclaimer strong { font-family: var(--wtn-display); font-weight: 600; color: var(--wtn-ink); }

/* ============================================================
   11. Responsive
   ============================================================ */
@media (max-width: 960px) {
  .wtn-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 40px; }
  .wtn-hero h1 { font-size: 36px; }
  .wtn-facts { grid-template-columns: 1fr 1fr; }
  .wtn-fact { padding-left: 16px; }
  .wtn-fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .wtn-fact:nth-child(n+3) { border-top: 1px solid var(--wtn-line); }
  .wtn-product-top { grid-template-columns: 1fr; grid-template-areas: "head" "panel" "media"; row-gap: 24px; padding-top: 24px; }
  .wtn-product-top .wtn-media { margin-top: 0; }
  .wtn-product h1 { font-size: 32px; }
  .wtn-panel { position: static; }
  .wtn-bt-grid { grid-template-columns: 1fr; gap: 24px; }
  .wtn-videos { grid-template-columns: 1fr; }
  .wtn-related ul.products { grid-template-columns: 1fr 1fr; }
  .wtn-section { margin-top: 56px; }
}
@media (max-width: 640px) {
  .wtn-home, .wtn-product, .wtn-card { font-size: 16px; }
  .wtn-hero h1 { font-size: 30px; }
  .wtn-lead { font-size: 18px; }
  .wtn-section > h2, .wtn-section-head > h2 { font-size: 23px; }
  ul.products.wtn-grid, .wtn-related ul.products { grid-template-columns: 1fr; }
  .wtn-why, .wtn-quotes, .wtn-fit, .wtn-two { grid-template-columns: 1fr; gap: 24px; }
  .wtn-sheet-big > dd { font-size: 19px; }
  .wtn-sheet > dd { white-space: normal; max-width: 62%; }
  .wtn-price .woocommerce-Price-amount, .wtn-price .price { font-size: 30px !important; }
  .wtn-inputs td:nth-child(2) { white-space: normal; }
  .wtn-gallery { grid-template-columns: repeat(3, 1fr); }

  /* the bar itself */
  .wtn-product { padding-bottom: 96px; }
  .wtn-stickybar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    align-items: center; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: var(--wtn-paper); border-top: 1px solid var(--wtn-line);
  }
  .wtn-stickybar-price { font-family: var(--wtn-display); font-weight: 600; font-size: 19px; white-space: nowrap; margin-right: auto; }
  .wtn-stickybar .wtn-btn { padding: 12px 16px !important; min-height: 44px; font-size: 15px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .wtn-btn, .wtn-buy .single_add_to_cart_button { transition: none; }
}
