/**
 * TweakInfo — WooCommerce Styles
 * Loaded only on WooCommerce pages.
 */

/* ══════════════════════════════════════════
   SINGLE PRODUCT
══════════════════════════════════════════ */
.wc-product-wrap { background: var(--bg-primary); }

.wc-product-hero { padding: 8rem 0 4rem; background: var(--bg-primary); }
.wc-product-hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start;
}
.wc-product-info .section-badge { margin-bottom: 1rem; }
.wc-product-title {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 700;
  color: var(--text-primary); line-height: 1.1; margin-bottom: 1rem;
}
.wc-product-desc { font-size: 1rem; color: var(--text-secondary); line-height: 1.7; margin-bottom: 1.5rem; }
.wc-product-price { font-size: 2.5rem; font-weight: 900; color: var(--green); margin-bottom: 1.5rem; }
.wc-trust-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.wc-trust-row span { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--text-muted); }
.wc-trust-row span svg { color: var(--green); flex-shrink: 0; }

.wc-product-form-wrap { padding: 2rem; border-radius: 1rem; }
.wc-choose-plan { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .15em; color: var(--green); margin-bottom: 1rem; }

/* Hide default WC variation form elements */
.wc-product-form-wrap .variations,
.wc-product-form-wrap .woocommerce-variation-description,
.wc-product-form-wrap .woocommerce-variation-availability { display: none !important; }

/* ── Plan Cards (variable product) ── */
.ti-plan-cards { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.ti-plan-card {
  position: relative; padding: 1.25rem 1.5rem; border-radius: .875rem;
  border: 2px solid var(--border); background: var(--bg-primary);
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.ti-plan-card:hover { border-color: rgba(0,204,0,0.4); }
.ti-plan-card.ti-plan-selected { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,204,0,0.1); }
.ti-plan-popular { border-color: var(--green); }
.ti-plan-badge {
  position: absolute; top: -.75rem; right: 1rem;
  background: var(--green); color: #000; font-size: .7rem; font-weight: 700;
  padding: .15rem .75rem; border-radius: 9999px;
}
.ti-plan-name { font-size: .95rem; font-weight: 700; color: var(--text-primary); margin-bottom: .35rem; }
.ti-plan-price { font-size: 1.5rem; font-weight: 900; color: var(--green); margin-bottom: .75rem; }
.ti-plan-price del { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.ti-plan-features { list-style: none; display: flex; flex-direction: column; gap: .3rem; margin-bottom: .75rem; }
.ti-plan-features li { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--text-secondary); }
.ti-plan-features li svg { color: var(--green); flex-shrink: 0; }
.ti-plan-select {
  width: 100%; justify-content: center; padding: .6rem 1rem;
  font-size: .875rem; margin-top: .5rem;
}
.ti-plan-card.ti-plan-selected .ti-plan-select { background: var(--green); color: #000; }

/* Product description */
.wc-product-description { color: var(--text-secondary); line-height: 1.8; }
.wc-product-description h2, .wc-product-description h3 { color: var(--text-primary); margin: 1.5rem 0 .75rem; }
.wc-product-description ul { list-style: disc; padding-left: 1.5rem; }
.wc-product-description li { margin-bottom: .4rem; }

@media(max-width:1024px){ .wc-product-hero-inner { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════
   CHECKOUT
══════════════════════════════════════════ */
.wc-checkout-wrap { padding: 8rem 0 6rem; background: var(--bg-primary); }
.wc-checkout-wrap .container {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 2rem; align-items: start;
}
.wc-checkout-summary, .wc-checkout-fields, .wc-checkout-payment {
  padding: 1.75rem; border-radius: 1rem;
}
.wc-checkout-summary h3,
.wc-checkout-fields h3,
.wc-checkout-payment h3 {
  font-size: 1.125rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1.25rem;
}
.wc-checkout-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.wc-checkout-item strong { font-size: .9rem; color: var(--text-primary); display: block; margin-bottom: .2rem; }
.wc-checkout-item p { font-size: .75rem; color: var(--text-muted); margin: 0; }
.wc-checkout-item-price { font-size: 1rem; font-weight: 700; color: var(--green); white-space: nowrap; }
.wc-checkout-total { display: flex; justify-content: space-between; padding-top: 1rem; font-size: 1.125rem; }
.wc-checkout-total strong { color: var(--green); font-size: 1.5rem; }

/* WC form fields */
.wc-checkout-fields .woocommerce-input-wrapper { display: block; }
.wc-checkout-fields input,
.wc-checkout-fields textarea,
.wc-checkout-fields select {
  width: 100%; background: var(--bg-primary); border: 1px solid var(--border);
  border-radius: .5rem; padding: .75rem 1rem; color: var(--text-primary);
  font-size: .875rem; font-family: var(--font-body); transition: border-color .2s;
  margin-bottom: .75rem;
}
.wc-checkout-fields input:focus,
.wc-checkout-fields textarea:focus { outline: none; border-color: var(--green); }
.wc-checkout-fields label { font-size: .875rem; font-weight: 600; color: var(--text-primary); display: block; margin-bottom: .35rem; }
.wc-checkout-fields .form-row { margin-bottom: .5rem; }
.wc-checkout-fields abbr[title] { text-decoration: none; color: var(--green); }

/* Project brief */
#ti-checkout-brief { margin-top: 1.25rem; }
#ti-checkout-brief label { font-size: .875rem; font-weight: 600; color: var(--text-primary); display: block; margin-bottom: .35rem; }
#ti-checkout-brief textarea { width: 100%; background: var(--bg-primary); border: 1px solid var(--border); border-radius: .5rem; padding: .75rem 1rem; color: var(--text-primary); font-size: .875rem; font-family: var(--font-body); resize: vertical; }
#ti-checkout-brief textarea:focus { outline: none; border-color: var(--green); }

/* Payment section */
.wc-checkout-payment { margin-top: 1.5rem; }
.wc-checkout-payment .woocommerce-checkout-payment { background: none; border: none; padding: 0; }
.wc-checkout-payment .payment_methods { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.wc-checkout-payment .payment_methods li { padding: .75rem 1rem; border: 1px solid var(--border); border-radius: .5rem; margin-bottom: .5rem; }
.wc-checkout-payment .payment_methods li label { font-size: .875rem; color: var(--text-primary); cursor: pointer; }
.wc-checkout-payment .place-order .button {
  width: 100%; padding: 1rem; background: var(--green); color: #000;
  border: none; border-radius: 9999px; font-size: 1rem; font-weight: 700;
  cursor: pointer; transition: background .2s; font-family: var(--font-body);
  box-shadow: 0 0 20px rgba(0,204,0,0.4);
}
.wc-checkout-payment .place-order .button:hover { background: var(--green-hover); }

@media(max-width:1024px){ .wc-checkout-wrap .container { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════
   THANK YOU PAGE
══════════════════════════════════════════ */
.wc-thankyou-wrap { padding: 8rem 0 6rem; background: var(--bg-primary); }
.wc-thankyou-icon { color: var(--green); margin: 0 auto 1.5rem; display: flex; justify-content: center; }
.wc-thankyou-wrap h1 { font-size: clamp(2rem,5vw,3rem); font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; }
.wc-thankyou-sub { font-size: 1rem; color: var(--text-secondary); margin-bottom: 2.5rem; }

.wc-thankyou-details {
  max-width: 36rem; margin: 0 auto 3rem; padding: 1.5rem;
  border-radius: 1rem; text-align: left;
}
.wc-thankyou-row { display: flex; justify-content: space-between; align-items: flex-start; padding: .6rem 0; border-bottom: 1px solid var(--border); font-size: .875rem; }
.wc-thankyou-row:last-child { border-bottom: none; }
.wc-thankyou-row span { color: var(--text-muted); }
.wc-thankyou-row strong { color: var(--text-primary); text-align: right; }
.wc-thankyou-brief p { color: var(--text-secondary); font-size: .8rem; line-height: 1.6; margin: .25rem 0 0; }

.wc-thankyou-items { max-width: 36rem; margin: 0 auto 3rem; text-align: left; }
.wc-thankyou-items h3 { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1rem; }
.wc-thankyou-item { display: flex; justify-content: space-between; padding: .75rem 0; border-bottom: 1px solid var(--border); font-size: .875rem; }
.wc-thankyou-item strong { color: var(--text-primary); }
.wc-thankyou-item span { color: var(--green); font-weight: 700; }

.wc-thankyou-next { margin-bottom: 3rem; }
.wc-thankyou-next h3 { font-size: 1.25rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1.5rem; }
.wc-next-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; max-width: 56rem; margin: 0 auto; }
.wc-next-step { padding: 1.25rem; border-radius: 1rem; text-align: left; }
.wc-next-num { font-size: 1.5rem; font-weight: 900; color: var(--green); font-family: var(--font-heading); display: block; margin-bottom: .5rem; }
.wc-next-step h4 { font-size: .875rem; font-weight: 700; color: var(--text-primary); margin-bottom: .35rem; }
.wc-next-step p { font-size: .75rem; color: var(--text-muted); line-height: 1.6; }

.wc-thankyou-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1rem; }

@media(max-width:768px){ .wc-next-steps { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px){ .wc-next-steps { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════
   WC NOTICES
══════════════════════════════════════════ */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
  padding: 1rem 1.5rem; border-radius: .75rem; margin-bottom: 1.5rem;
  font-size: .875rem; list-style: none;
}
.woocommerce-message { background: rgba(0,204,0,0.1); border: 1px solid rgba(0,204,0,0.3); color: var(--text-primary); }
.woocommerce-error  { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #FCA5A5; }
.woocommerce-info   { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: var(--text-primary); }
