/* Khatipon "Modern" colour style: charcoal + maroon brand + premium gold Order Now.
   Loaded only when Customize → Khatipon Theme Options → Design → Colour style = Modern. */
:root{--wine:#a80e3c;--wine-dark:#740626;--char:#1b1d22;--char2:#25282f;--gold1:#f6d27a;--gold2:#e3a93f;--gold3:#c98a22;--soft:#f6f6f7;--line:#ececee;--td-line:#ececee;--cream:#fafafa}
body{background:#fff!important}
.td-topbar{background:var(--char)!important;color:#e9e9ec!important}
.td-topbar .td-tb-sep{color:var(--gold2)}
.td-header,.td-header-main{background:#fff!important}
.td-header-main{border-bottom:1px solid var(--line)}
.td-offer-btn{background:#fff!important;color:var(--wine)!important;border:1.5px solid var(--wine)!important;box-shadow:none!important}
.td-offer-btn:hover{background:var(--wine)!important;color:#fff!important}
.td-search{border-color:#d9dade!important}.td-search button,.td-search [type=submit]{background:var(--char)!important}
.td-wa-btn{background:#25d366!important;color:#fff!important;box-shadow:0 4px 12px rgba(37,211,102,.25)!important}
.td-icon-btn{background:var(--soft)!important;color:var(--char)!important;border:1px solid var(--line)!important}
.td-cart-pill{background:var(--char)!important;color:#fff!important}.td-cart-pill .td-cart-icon{color:var(--char)!important}
.td-cart-badge{background:var(--gold2)!important;color:#1b1d22!important}
.td-header-nav{background:#fff!important;border-bottom:1px solid var(--line)!important}
.td-browse-btn{background:var(--char)!important;color:#fff!important;border-radius:8px}
.td-nav-phone{color:var(--wine)!important}
.td-hero-slider{border-radius:16px;overflow:hidden}
.td-cats .td-cat-card{background:#fff!important;border:1px solid var(--line)!important}
.td-cats .td-cat-card:before{background:linear-gradient(180deg,#f4f4f6 0%,rgba(244,244,246,0) 100%)!important}
.td-cat-img,.td-cats .category-card span.td-cat-img{border-color:#e6e6ea!important;box-shadow:0 6px 14px rgba(20,20,30,.07)!important}
.td-cat-img img{background:#f4f4f6!important}
.td-cat-count,.td-cats .category-card span.td-cat-count{background:#f3f3f5!important;color:#555!important}
.product-card{border:1px solid var(--line)!important;border-radius:14px!important;background:#fff!important}
.product-price,.product-price ins{color:var(--wine)!important}
.sale-badge{background:var(--wine)!important}.hot-badge{background:var(--char)!important;color:#fff!important}
.td-support-strip{background:#fafafa!important}
.td-support-ico{background:#f1f1f3!important;color:var(--wine)!important}
.td-footer{background:var(--char)!important;border-top:4px solid var(--wine)!important;color:#d9d9de!important}
.td-footer-bottom{background:#121317!important}
.td-float-wa{background:#25d366!important}
.td-bn-offer{color:var(--wine)!important}
.td-mobile-nav a.is-active,.td-mobile-nav a:hover{color:var(--wine)!important}

/* ---------- Order Now: brand maroon, clean (style A) ---------- */
html body .product-card a.add-cart.khatipon-order-now,
html body .product-card .add-cart,
html body .woocommerce ul.products li.product a.khatipon-order-now,
html body.single-product .related.products ul.products li.product a.khatipon-order-now,
html body .woocommerce div.product form.cart button.single-buy-now,
.woocommerce div.product form.cart .single-buy-now{
  position:relative!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;
  min-height:46px!important;padding:11px 16px!important;border:0!important;border-radius:10px!important;
  background:var(--wine)!important;color:#fff!important;font-weight:700!important;font-size:15px!important;letter-spacing:.01em!important;text-transform:none!important;
  box-shadow:0 6px 14px rgba(168,14,60,.22)!important;text-shadow:none!important;filter:none!important;
  transition:background .2s ease,transform .2s ease,box-shadow .2s ease!important}
html body .product-card a.add-cart.khatipon-order-now::before,
html body .woocommerce ul.products li.product a.khatipon-order-now::before,
html body.single-product .related.products ul.products li.product a.khatipon-order-now::before,
.woocommerce div.product form.cart .single-buy-now::before{content:none!important;display:none!important}
html body .product-card a.add-cart.khatipon-order-now::after,
html body .woocommerce ul.products li.product a.khatipon-order-now::after,
html body.single-product .related.products ul.products li.product a.khatipon-order-now::after,
.woocommerce div.product form.cart .single-buy-now::after{
  content:""!important;display:inline-block!important;position:static!important;flex:0 0 17px;width:17px;height:17px;background:currentColor!important;border:0!important;animation:none!important;transform:none!important;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;transition:transform .2s ease!important}
html body .product-card a.add-cart.khatipon-order-now:hover,
html body .woocommerce ul.products li.product a.khatipon-order-now:hover,
html body .woocommerce div.product form.cart button.single-buy-now:hover,
.woocommerce div.product form.cart .single-buy-now:hover{background:var(--wine-dark)!important;color:#fff!important;transform:translateY(-1px)!important;box-shadow:0 10px 20px rgba(116,6,38,.28)!important}
html body .product-card a.add-cart.khatipon-order-now:hover::after,
.woocommerce div.product form.cart .single-buy-now:hover::after{transform:translateX(3px)!important}
html body .product-card a.add-cart.khatipon-order-now:active,.woocommerce div.product form.cart .single-buy-now:active{transform:translateY(0)!important}
.woocommerce div.product form.cart .single-buy-now{min-height:52px!important;padding:13px 26px!important;font-size:16px!important}
/* Product page: Add to Cart becomes the quieter partner of Order Now */
html body .woocommerce div.product form.cart button.single_add_to_cart_button:not(.single-buy-now){background:#fff!important;color:var(--wine)!important;border:1.5px solid var(--wine)!important;border-radius:10px!important;min-height:52px!important;font-weight:700!important;box-shadow:none!important}
html body .woocommerce div.product form.cart button.single_add_to_cart_button:not(.single-buy-now):hover{background:#fbf1f4!important}
/* Other buttons in the same family */
.td-view-all,a.td-view-all,.view-all-btn,.td-btn-outline{border-radius:10px!important}
.td-offer-btn,.td-wa-btn{border-radius:10px!important}
@media (max-width:640px){html body .product-card a.add-cart.khatipon-order-now{min-height:42px!important;font-size:13.5px!important;padding:9px 10px!important;gap:6px!important}
 html body .product-card a.add-cart.khatipon-order-now::after{flex-basis:15px;width:15px;height:15px}}
/* v4.1.2: WhatsApp visible on phones too (round green button next to the cart) */
@media (max-width:900px){
  html body .td-header .td-wa-btn{display:inline-flex!important;width:40px!important;height:40px!important;padding:0!important;border-radius:50%!important;justify-content:center;background:#25d366!important;color:#fff!important;box-shadow:0 4px 10px rgba(37,211,102,.3)!important}
  html body .td-header .td-wa-btn span{display:none!important}
}
/* v4.3: mobile header stays on one line (menu · logo · WhatsApp · cart) */
@media (max-width:600px){
  html body .td-header-row{column-gap:8px!important}
  html body .td-header .td-logo{flex:1 1 0!important;min-width:0!important;justify-content:center}
  html body .td-header .td-logo .custom-logo-link{display:block;max-width:100%}
  html body .td-header .td-logo img,html body .td-header .td-logo .custom-logo{max-height:52px!important;max-width:100%!important;width:auto!important;height:auto!important}
  html body .td-header.is-sticky .td-logo img{max-height:42px!important}
  html body .td-header .td-actions{flex:0 0 auto!important;gap:8px!important}
  html body .td-header .td-burger{flex:0 0 auto}
}
/* v4.3: slim premium WhatsApp buttons */
html body .td-header .td-wa-btn{background:#fff!important;color:#128c7e!important;border:1.5px solid #25d366!important;box-shadow:0 3px 10px rgba(18,140,126,.14)!important;transition:background .2s,color .2s,transform .2s}
html body .td-header .td-wa-btn svg{color:#1fae5b}
html body .td-header .td-wa-btn:hover{background:#25d366!important;color:#fff!important;transform:translateY(-1px)}
html body .td-header .td-wa-btn:hover svg{color:#fff}
@media (max-width:900px){html body .td-header .td-wa-btn{width:38px!important;height:38px!important}html body .td-header .td-wa-btn svg{width:19px;height:19px}}
html body .td-float-wa{width:50px!important;height:50px!important;background:linear-gradient(140deg,#128c7e 0%,#25d366 100%)!important;box-shadow:0 0 0 3px #fff,0 8px 20px rgba(18,140,126,.32)!important;transition:transform .2s ease}
html body .td-float-wa svg{width:26px!important;height:26px!important}
html body .td-float-wa:hover{transform:translateY(-2px) scale(1.04)}
html body .td-float-wa:before,html body .td-float-wa:after{display:none!important}
@media (max-width:900px){html body .td-float-wa{width:46px!important;height:46px!important;right:14px!important}html body .td-float-wa svg{width:24px!important;height:24px!important}}
