/*
Theme Name: Chè Sạch Thái Nguyên
Template: tyche
Version: 1.0.0
Text Domain: che-sach-child
*/
:root{--tea:#245c36;--leaf:#e8f2e7;--paper:#fff;--gold:#c8a45d;--ink:#183122;--muted:#526759;--line:#dce7dc}
body{color:var(--ink);background:var(--paper);font-family:Arial,sans-serif}
.tea-wrap{width:min(1240px,calc(100% - 48px));margin-inline:auto}
.tea-top{padding:8px 0;background:var(--tea);color:#fff;font-size:13px}
.tea-top .tea-wrap,.tea-head,.tea-nav .tea-wrap,.tea-section-title,.tea-footer .tea-wrap{display:flex;justify-content:space-between;align-items:center;gap:20px}
.tea-top a,.tea-top a:hover,.tea-footer a,.tea-footer a:hover{color:inherit}
.tea-head{min-height:96px;gap:30px}
.tea-brand{display:inline-flex;align-items:center;gap:11px;font:700 22px Arial,sans-serif;color:var(--tea);line-height:1.1}
.tea-brand:hover,.tea-nav a:hover{color:var(--tea);text-decoration:underline}
.tea-brand small{display:block;font:700 9px Arial,sans-serif;letter-spacing:.2em;text-transform:uppercase;margin-top:5px}
.tea-mark{display:grid;place-items:center;background:var(--leaf);width:44px;height:44px;flex:0 0 44px;border-radius:50%;color:var(--tea)}
.tea-mark svg{width:24px;height:24px;fill:currentColor}
.tea-search{display:flex;flex:1;max-width:440px;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.tea-search input{border:0;flex:1;min-width:0;padding:11px 14px;background:#fff}
.tea-search button,.tea-button,.woocommerce a.button,.woocommerce button.button,.woocommerce button.button.alt,.woocommerce a.button.alt,.woocommerce input.button,.woocommerce #respond input#submit{background:var(--tea)!important;color:#fff!important;border:none;border-radius:6px;padding:11px 17px;font-weight:700;text-transform:none;white-space:normal}
.tea-search button{border-radius:0;padding:9px 14px}
.tea-button{display:inline-block;text-decoration:none}
.tea-button:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.tea-search button:hover{background:#183f25!important;color:#fff!important}
.tea-cart{display:inline-flex;align-items:center;gap:6px;font-weight:bold;color:var(--tea);white-space:nowrap}
.tea-cart svg{width:20px;height:20px;flex:none}
.tea-cart-count{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 5px;border-radius:999px;background:var(--tea);color:#fff;font-size:12px;line-height:1}
.tea-nav{background:var(--leaf);border-block:1px solid var(--line)}
.tea-nav .tea-wrap{justify-content:flex-start;flex-wrap:wrap;gap:8px 24px;padding-block:11px}
.tea-nav a{font-size:14px;font-weight:bold;color:var(--ink)}
.tea-hero{background:#153823;color:#fff;position:relative;overflow:hidden}
.tea-hero .tea-wrap{display:flex;min-height:505px;align-items:center;padding-block:56px;position:relative}
.tea-hero-content{max-width:670px}
.tea-hero h1,.tea-section h2{font:700 clamp(34px,6vw,86px)/1.08 Arial,sans-serif;letter-spacing:normal;margin:0 0 20px;color:inherit}
.tea-hero p{max-width:480px;font-size:17px;margin:0 0 24px;color:#f3f8f1}
.tea-kicker{display:block;color:var(--gold);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.19em;margin-bottom:18px}
.tea-hero .tea-button{background:var(--gold)!important;color:#16291a!important}
.tea-hero .tea-button:hover{background:#ddbc79!important}
.tea-section{padding:52px 0}
.tea-section+.tea-section{border-top:1px solid var(--line)}
.tea-section h2{font-size:clamp(28px,4vw,46px);margin:0}
.tea-section-title{margin-bottom:23px}
.tea-section-title a{font-weight:bold;color:var(--tea)}
.tea-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tea-categories a{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--leaf);padding:19px 14px;border-radius:8px;color:var(--tea);font:700 17px Arial,sans-serif}
.tea-categories a:hover{background:#d9ead7;color:var(--tea)}
.tea-about{background:var(--leaf)}
.tea-about p{max-width:740px;margin:18px 0 0;font-size:16px;line-height:1.7}
.tea-footer{background:#173a26;color:#fff;padding:34px 0}
.tea-footer .tea-wrap{align-items:flex-start;flex-wrap:wrap}
.tea-footer h2,.tea-footer h3{color:#fff;margin:0 0 10px}
.tea-footer p{margin:0 0 5px}
.tea-contact{display:flex;gap:12px;flex-wrap:wrap}
.tea-price-note{font-size:13px;color:var(--muted);margin:14px 0}
.tea-buy-now{margin-inline-start:8px}
.woocommerce ul.products li.product a img{border-radius:8px;background:var(--leaf);object-fit:cover;aspect-ratio:1/1}
.woocommerce ul.products li.product .price,.woocommerce div.product p.price{color:var(--tea);font-weight:700}
.woocommerce ul.products li.product .woocommerce-loop-product__title{color:var(--ink);font-weight:700;line-height:1.35}
.woocommerce .woocommerce-message,.woocommerce .woocommerce-info{border-top-color:var(--tea)}
.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.woocommerce div.product form.cart .tea-buy-now{margin:0}
.tea-product-art{width:100%;display:block}
@media(max-width:760px){
  .tea-wrap{width:calc(100% - 30px)}
  .tea-head{flex-wrap:wrap;min-height:auto;padding-block:14px;gap:12px}
  .tea-search{order:3;flex-basis:100%;max-width:none}
  .tea-nav .tea-wrap{gap:7px 15px}
  .tea-hero .tea-wrap{min-height:365px}
  .tea-hero-content{max-width:450px}
  .tea-categories{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tea-section{padding:35px 0}
}
@media(max-width:380px){.tea-top .tea-wrap{flex-wrap:wrap;gap:2px 10px}.tea-brand{font-size:19px}}

.tea-gallery{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:12px;margin-top:24px}
.tea-gallery figure{margin:0;overflow:hidden;border-radius:8px;background:#fff}
.tea-gallery img{display:block;width:100%;height:clamp(150px,24vw,300px);object-fit:cover}
.tea-gallery figcaption{padding:9px 12px;color:var(--ink);font-size:13px}
@media(max-width:560px){.tea-gallery{grid-template-columns:1fr 1fr}.tea-gallery figure:first-child{grid-column:1/-1}}
.tea-commerce-page{max-width:1080px;padding-block:32px 54px}
.tea-commerce-page h1{margin:0 0 22px;color:var(--tea);font:700 clamp(28px,5vw,45px)/1.1 Arial,sans-serif}
.tea-commerce-page .wc-block-components-button:not(.is-link){background:var(--tea);color:#fff;border-radius:6px}
.tea-compare-price{display:grid;gap:2px;line-height:1.35}
.tea-compare-line{display:flex;justify-content:inherit;gap:.45em;align-items:center}
.woocommerce ul.products .tea-compare-line{justify-content:center}
.tea-compare-line del,.woocommerce ul.products li.product .price .tea-compare-line del{color:#526759;opacity:1;font-size:.88em;font-weight:400}
.tea-compare-discount{background:#e8f2e7;color:#245c36;border-radius:4px;font-size:.8em;font-weight:700;padding:2px 6px;white-space:nowrap}
.woocommerce.tea-no-product-photo div.product div.summary{float:none;width:100%}
.tea-quick-contact{position:fixed;z-index:1000;right:max(16px,env(safe-area-inset-right));bottom:max(16px,env(safe-area-inset-bottom));display:grid;gap:8px}
.tea-quick-contact .tea-quick-button{display:grid;place-items:center;width:56px;height:56px;border:2px solid #fff;border-radius:50%;color:#fff;text-decoration:none;box-shadow:0 3px 12px #132d2540}
.tea-quick-phone{position:relative;background:#287d3f;animation:tea-phone-ring 1.3s ease-in-out infinite;transform-origin:50% 55%}
.tea-quick-zalo{background:#066bc8}
.tea-quick-button:hover{filter:brightness(.9)}
.tea-quick-button:focus-visible{outline:3px solid #c8a45d;outline-offset:2px}
.tea-phone-symbol{width:27px;height:27px}
.tea-zalo-bubble{position:relative;display:grid;place-items:center;width:33px;height:27px;border-radius:50%;background:#fff;color:#065bb1;font:700 13px/1 Arial,sans-serif}
.tea-zalo-bubble::after{content:'';position:absolute;left:4px;bottom:-3px;border:4px solid transparent;border-left-color:#fff;border-top-color:#fff}
.tea-quick-phone::after{content:'';position:absolute;inset:-5px;border:2px solid #419e58;border-radius:50%;pointer-events:none;animation:tea-phone-pulse 1.3s ease-out infinite}
@keyframes tea-phone-ring{0%,40%,100%{transform:translateX(0) rotate(0)}8%,24%{transform:translateX(-2px) rotate(-6deg)}16%,32%{transform:translateX(2px) rotate(6deg)}}
@keyframes tea-phone-pulse{0%{transform:scale(.92);opacity:.9}75%,100%{transform:scale(1.33);opacity:0}}
@media(max-width:600px){.tea-quick-contact .tea-quick-button{width:48px;height:48px}.woocommerce-cart .tea-quick-contact,.woocommerce-checkout .tea-quick-contact{bottom:max(84px,calc(env(safe-area-inset-bottom) + 72px))}}
@media(prefers-reduced-motion:reduce){.tea-quick-phone,.tea-quick-phone::after{animation:none}.tea-quick-phone::after{opacity:.55}}


.tea-hero-track,.tea-hero-track::after,.tea-hero-photo{position:absolute;inset:0;width:100%;height:100%}
.tea-hero-track{left:auto;width:min(74%,1180px);background:#183b29}
.tea-hero-track::after{content:'';background:linear-gradient(90deg,#153823 0%,rgba(21,56,35,.88) 12%,rgba(21,56,35,.28) 50%,transparent 78%)}
.tea-hero-content{text-shadow:0 1px 12px #10291c70}
.tea-hero-content .tea-button{text-shadow:none}
.tea-hero-photo{object-fit:cover;object-position:center 58%;opacity:0;transition:opacity .55s ease}
.tea-hero-photo:first-child{object-position:center 64%}
.tea-hero-photo.is-active{opacity:1}
@media(max-width:760px){
  .tea-hero-track{width:100%}
  .tea-hero-track::after{background:linear-gradient(90deg,rgba(12,35,22,.87) 0%,rgba(12,35,22,.60) 58%,rgba(12,35,22,.15) 100%)}
  .tea-hero-photo,.tea-hero-photo:first-child{object-position:62% center}
}
@media(prefers-reduced-motion:reduce){.tea-hero-photo{transition:none}}

.tea-updates{background:var(--leaf)}
.tea-updates-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.tea-updates-frame [hidden],.tea-updates-frame:not(.is-ready) .tea-update-card:nth-child(n+4){display:none!important}
@media(max-width:760px){
  .tea-updates-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .tea-updates-frame .tea-updates-grid{touch-action:pan-y pinch-zoom}
  .tea-updates-grid .tea-update-content{padding:12px}
  .tea-updates-grid .tea-update-title{font-size:clamp(19px,5vw,23px);overflow-wrap:anywhere}
  .tea-updates-grid .tea-update-content p{font-size:13px}
  .tea-updates-frame:not(.is-ready) .tea-update-card:nth-child(n+2){display:none!important}
}
.tea-update-card{overflow:hidden;background:#fff;border:1px solid #dce7dc;border-radius:12px}
.tea-update-card a{display:flex;flex-direction:column;height:100%;color:var(--ink);text-decoration:none}
.tea-update-card a:focus-visible{outline:2px solid var(--tea);outline-offset:-3px}
.tea-update-card a:hover .tea-update-title{text-decoration:underline}
.tea-update-image{display:block;width:100%;aspect-ratio:16/8;max-height:325px;object-fit:cover}
.tea-update-content{display:flex;flex:1;flex-direction:column;align-items:flex-start;padding:22px clamp(18px,3vw,30px)}
.tea-update-card time,.tea-article time{color:#506358;font-size:13px}
.tea-update-content .tea-update-title{margin:8px 0;color:var(--tea);font:700 clamp(21px,3vw,28px)/1.22 Arial,sans-serif}
.tea-update-content p{margin:0 0 15px}
.tea-update-more,.tea-update-card .tea-update-more{display:inline-block;color:var(--tea);font-weight:bold}
.tea-update-card .tea-update-more{margin-top:auto}
.tea-article{max-width:820px;padding-block:32px 56px}
.tea-article header{margin:24px 0 20px}
.tea-article h1{margin:8px 0 0;color:var(--tea);font:700 clamp(30px,5vw,48px)/1.12 Arial,sans-serif}
.tea-article-cover,.tea-article-body img{display:block;width:100%;height:auto;border-radius:10px}
.tea-article-body{margin-top:26px;font-size:17px;line-height:1.7}
.tea-article-body figure{margin:24px 0}

.tea-updates-heading a{text-align:right}
.tea-updates-heading h2{margin-bottom:0}
.tea-updates-index h1{margin:0 0 24px;color:var(--tea);font:700 clamp(30px,5vw,46px)/1.15 Arial,sans-serif}
.tea-updates-index .pagination{margin-top:24px}
