/*
Theme Name: MadeToGo Child
Template: twentytwentyfive
Text Domain: madetogo-child
Version: 1.0.1
Requires at least: 6.7
WPVibe: yes
Update URI: false
*/
@import url('../twentytwentyfive/style.min.css');

:root{
  --mtg-ink:#1f231b;
  --mtg-paper:#eeeeee;
  --mtg-accent:#8b9a6e;
  --mtg-dark:#525a42;
  --mtg-soft:#f7f2eb;
  --mtg-warm:#eae2d6;
  --mtg-muted:#55594f;
  --mtg-line:#d8d3cb;
  --mtg-card:#f7f2eb;
}

body{background:var(--mtg-paper);color:var(--mtg-ink)}
.mtg-header{background:rgba(238,238,238,.96);border-bottom:1px solid var(--mtg-line)}
.mtg-hero-title,.mtg-section-title,.single-product .product_title,.single-product .wp-block-post-title{color:var(--mtg-accent)}

/* Sage buttons always use white text */
.mtg-btn-primary .wp-block-button__link,
.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button,
.mtg-add-two,
.wc-block-components-button,
.wp-block-button__link,
button.wc-block-components-button{
  background:var(--mtg-accent)!important;
  color:#fff!important;
  border-color:var(--mtg-accent)!important;
}
.mtg-btn-primary .wp-block-button__link:hover,
.single-product .single_add_to_cart_button:hover,
.mtg-add-two:hover,
.wc-block-components-button:hover,
.wp-block-button__link:hover{filter:brightness(.93);color:#fff!important}

.mtg-feature-grid>.wp-block-column,.mtg-multi-buy,.mtg-persona-card{background:var(--mtg-soft)}
.mtg-comparison,.mtg-buy-trust span{background:var(--mtg-warm)}

/* Replace all dark/black MadeToGo surfaces */
.mtg-strip,
.mtg-footer,
.mtg-motion-section,
.mtg-payment,
.mtg-trust-strip,
.mtg-trust-strip>div,
.mtg-image-pair,
.mtg-hero-visual{
  background:var(--mtg-dark)!important;
  color:#fff!important;
}
.mtg-strip h1,.mtg-strip h2,.mtg-strip h3,.mtg-strip h4,.mtg-strip h5,.mtg-strip h6,
.mtg-footer h1,.mtg-footer h2,.mtg-footer h3,.mtg-footer h4,.mtg-footer h5,.mtg-footer h6,
.mtg-motion-section h1,.mtg-motion-section h2,.mtg-motion-section h3,
.mtg-payment h1,.mtg-payment h2,.mtg-payment h3,
.mtg-trust-strip h1,.mtg-trust-strip h2,.mtg-trust-strip h3,
.mtg-strip p,.mtg-footer p,.mtg-footer a,.mtg-motion-section p,.mtg-payment p,.mtg-trust-strip span,.mtg-hero-visual-label{
  color:#fff!important;
}
.mtg-strip h4,.mtg-motion-section .mtg-kicker,.mtg-payment .mtg-kicker,.mtg-trust-strip strong{color:#fff!important}

/* Cart + checkout match product design */
body.woocommerce-cart,body.woocommerce-checkout,.page-id-6,.page-id-7{background:var(--mtg-paper)!important;color:var(--mtg-ink)!important}
body.woocommerce-cart main,body.woocommerce-checkout main,.page-id-6 main,.page-id-7 main{padding-top:34px;padding-bottom:72px}
body.woocommerce-cart .wp-block-post-title,body.woocommerce-checkout .wp-block-post-title,.page-id-6 .wp-block-post-title,.page-id-7 .wp-block-post-title{
  color:var(--mtg-accent)!important;
  font-size:clamp(2.5rem,5vw,4.8rem)!important;
  line-height:.95!important;
  letter-spacing:-.05em!important;
  max-width:1200px!important;
  margin-left:auto!important;margin-right:auto!important;
}
.wp-block-woocommerce-cart,.wp-block-woocommerce-checkout{max-width:1240px!important;margin-left:auto!important;margin-right:auto!important;padding:0 24px!important}
.wc-block-cart-items,.wc-block-components-sidebar,.wc-block-checkout__main,.wp-block-woocommerce-checkout-totals-block,
.wc-block-components-totals-wrapper,.wc-block-components-order-summary,
.wc-block-components-address-form,.wc-block-components-checkout-step,
.wc-block-components-radio-control,.wc-block-components-panel{
  border-color:var(--mtg-line)!important;
}
.wc-block-components-sidebar,.wp-block-woocommerce-cart-totals-block,.wp-block-woocommerce-checkout-totals-block{
  background:var(--mtg-soft)!important;
  border:1px solid var(--mtg-line)!important;
  border-radius:22px!important;
  padding:24px!important;
}
.wc-block-cart-items__row,.wc-block-components-order-summary-item{
  background:var(--mtg-soft)!important;
  border-radius:18px!important;
}
.wc-block-cart-item__image img,.wc-block-components-order-summary-item__image img{border-radius:14px!important}
.wc-block-cart-item__product .wc-block-components-product-name,.wc-block-components-order-summary-item__description .wc-block-components-product-name{
  color:var(--mtg-ink)!important;font-weight:800!important;
}
.wc-block-components-text-input input,.wc-block-components-combobox-control input,.wc-block-components-address-form input,
.wc-block-components-textarea{
  background:#fff!important;border:1px solid var(--mtg-line)!important;border-radius:12px!important;color:var(--mtg-ink)!important;
}
.wc-block-components-checkout-step__heading,.wc-block-components-title,.wc-block-cart__totals-title,
.wp-block-woocommerce-cart h2,.wp-block-woocommerce-checkout h2{color:var(--mtg-dark)!important}
.wc-block-components-totals-item__value,.wc-block-components-product-price{color:var(--mtg-ink)!important}
.wc-block-components-checkout-place-order-button,.wc-block-cart__submit-button{min-height:58px!important;border-radius:14px!important;font-weight:850!important}
.wc-block-components-totals-coupon__button{background:var(--mtg-dark)!important;color:#fff!important;border-radius:10px!important}
.wc-block-cart__empty-cart__title{color:var(--mtg-accent)!important}

/* Product price remains split on two lines */
.single-product .wp-block-woocommerce-product-price,
.single-product .summary .price,
.single-product .price,
.single-product .woocommerce-variation-price .price{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:4px!important}
.single-product .price del,.single-product .wp-block-woocommerce-product-price del,.single-product .woocommerce-variation-price del{display:block!important;width:100%!important;font-size:1.2rem!important;line-height:1.25!important}
.single-product .price ins,.single-product .wp-block-woocommerce-product-price ins,.single-product .woocommerce-variation-price ins{display:block!important;width:100%!important;font-size:clamp(2.35rem,4.2vw,3.8rem)!important;line-height:.95!important;font-weight:900!important;text-decoration:none!important}
.single-product .mtg-product-summary>.stock.in-stock{margin:0 0 14px!important}

/* Product hero proportions */
.single-product .mtg-product-media{flex:0 1 50%!important;width:50%!important}
.single-product .mtg-product-summary{flex:0 1 50%!important;width:50%!important}
.single-product .product_title,.single-product .wp-block-post-title{font-size:clamp(2.15rem,3.6vw,4rem)!important;line-height:.96!important;max-width:100%!important}
.single-product .mtg-below-hero-usps{width:100%!important;max-width:none!important;margin:28px 0 0!important;padding-top:24px!important;border-top:1px solid var(--mtg-line)!important}
.single-product .mtg-below-hero-usps .mtg-summary-lead{max-width:none!important;margin:0 0 14px!important}

/* USP list sits below the buying controls and flows horizontally */
.mtg-top-usps-horizontal{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:0 22px!important;margin:22px 0 0!important;padding:0!important;list-style:none!important}
.mtg-top-usps-horizontal li{position:relative!important;padding:10px 0 10px 26px!important;border-bottom:1px solid var(--mtg-line)!important;font-size:.9rem!important;line-height:1.45!important}
.mtg-top-usps-horizontal li:before{content:'✓'!important;position:absolute!important;left:0!important;top:10px!important;color:var(--mtg-accent)!important;font-weight:900!important}

/* Trust strip: centered content with two text tones */
.mtg-trust-strip{justify-items:center!important;text-align:center!important}
.mtg-trust-strip>div{width:100%!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important}
.mtg-trust-strip strong{color:#fff!important}
.mtg-trust-strip span,.mtg-trust-strip>div{color:#eae2d6!important}

/* Comparison highlight follows the dark green palette */
.mtg-comparison td:nth-child(2),.mtg-comparison th:nth-child(2){background:#525a4282!important}

/* Let the 4-step list span the full story section */
.mtg-story-split .mtg-story-copy{display:contents!important}
.mtg-story-split .mtg-story-copy>.mtg-kicker,.mtg-story-split .mtg-story-copy>h2,.mtg-story-split .mtg-story-copy>p{grid-column:1!important}
.mtg-story-split>.mtg-story-image{grid-column:2!important;grid-row:1 / 4!important}
.mtg-story-split .mtg-step-list{grid-column:1 / -1!important;width:100%!important;max-width:none!important;margin-top:22px!important}
.mtg-story-split .mtg-step-list>div{display:grid!important;grid-template-columns:42px 145px minmax(0,1fr)!important;gap:12px!important;align-items:start!important;width:100%!important}
.mtg-story-split .mtg-step-list>div>b{grid-column:1!important}
.mtg-story-split .mtg-step-list>div>strong{grid-column:2!important}
.mtg-story-split .mtg-story-copy>p{width:100%!important;max-width:none!important}

@media(max-width:900px){
  .single-product .mtg-product-media,.single-product .mtg-product-summary{width:100%!important;flex-basis:100%!important}
  .mtg-top-usps-horizontal{grid-template-columns:1fr!important}
  .mtg-story-split .mtg-story-copy{display:block!important}
  .mtg-story-split>.mtg-story-image{grid-column:1!important;grid-row:auto!important}
  .mtg-story-split .mtg-step-list{grid-column:1!important}
}

/* Stronger green for purchase CTAs */
.single-product .single_add_to_cart_button,
.single-product button.single_add_to_cart_button,
.single-product .mtg-add-two{
  background:#619105!important;
  border-color:#619105!important;
  color:#fff!important;
}
.single-product .single_add_to_cart_button:hover,
.single-product button.single_add_to_cart_button:hover,
.single-product .mtg-add-two:hover{
  background:#547f04!important;
  border-color:#547f04!important;
  color:#fff!important;
}

/* Sale badges use the heading/accent colour */
.onsale,
.wc-block-components-product-sale-badge,
.wc-block-grid__product-onsale{
  background:var(--mtg-accent)!important;
  border-color:var(--mtg-accent)!important;
  color:#fff!important;
}
