/*
Theme Name: TrangTea
Theme URI: https://trangtea.com/
Author: TrangTea
Author URI: https://trangtea.com/
Description: Theme WordPress nhẹ, responsive, phong cách trà Việt truyền thống; hỗ trợ WooCommerce, Gutenberg và tùy biến trong Giao diện.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trangtea
Tags: e-commerce, food-and-drink, blog, custom-logo, custom-menu, featured-images, editor-style, threaded-comments, translation-ready
*/
:root{--tt-ink:#2f2a20;--tt-green:#254b37;--tt-green2:#41694d;--tt-cream:#f7f2e8;--tt-paper:#fffdf8;--tt-gold:#b78b4a;--tt-muted:#756f63;--tt-line:#e5dccb;--tt-radius:16px;--tt-shadow:0 12px 35px rgba(47,42,32,.08)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--tt-paper);color:var(--tt-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.7}
a{color:var(--tt-green);text-decoration:none}
a:hover{color:#8a6129}
img{max-width:100%;height:auto;display:block}
button,input,select,textarea{font:inherit}
button,.button,.wp-block-button__link,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{border:0;border-radius:999px;background:var(--tt-green);color:#fff;padding:.78rem 1.15rem;font-weight:650;cursor:pointer}
button:hover,.button:hover,.wp-block-button__link:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover{background:#183626;color:#fff}
input,select,textarea{max-width:100%;border:1px solid var(--tt-line);border-radius:10px;padding:.7rem;background:#fff}
:focus-visible{outline:3px solid #d7b36f;outline-offset:3px}
.site-shell{overflow:hidden}
.container{width:min(1160px,calc(100% - 40px));margin-inline:auto}
.site-header{background:rgba(255,253,248,.97);border-bottom:1px solid var(--tt-line);position:relative;z-index:5}
.header-top{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:18px 0}
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.custom-logo{width:auto;max-height:58px}
.brand-mark{width:46px;height:46px;display:grid;place-items:center;border-radius:50% 50% 45% 45%;background:var(--tt-green);color:#f7ebd2;font-family:Georgia,serif;font-size:26px}
.brand-name{font-family:Georgia,"Times New Roman",serif;font-size:28px;line-height:1.1;letter-spacing:.02em;color:var(--tt-green);font-weight:700}
.brand-tagline{font-size:12px;color:var(--tt-muted);margin-top:4px}
.header-actions{display:flex;align-items:center;gap:12px}
.header-actions a{font-size:14px;font-weight:650}
.header-actions .cart-link{border:1px solid var(--tt-line);padding:9px 13px;border-radius:999px}
.main-nav{border-top:1px solid #f0e8da}
.main-nav .container{display:flex;align-items:center;justify-content:space-between;gap:20px}
.primary-menu{display:flex;align-items:center;gap:25px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.primary-menu a{display:block;padding:12px 0;font-size:14px;font-weight:650;color:#423d31}
.primary-menu a:hover{color:var(--tt-green2)}
.mobile-menu-toggle{display:none}
.hero{background:linear-gradient(110deg,rgba(25,55,39,.96),rgba(37,75,55,.88)),#254b37;color:#fff;padding:76px 0 72px;position:relative}
.hero:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 82% 18%,rgba(213,181,117,.2),transparent 28%),radial-gradient(circle at 72% 100%,rgba(255,255,255,.07),transparent 32%);pointer-events:none}
.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.15fr .85fr;gap:55px;align-items:center}
.eyebrow{font-size:12px;letter-spacing:.17em;text-transform:uppercase;font-weight:750;color:#d8bd8c}
.hero h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:-.035em;font-size:clamp(38px,5vw,64px);line-height:1.08;margin:15px 0 20px;max-width:720px}
.hero p{color:#eee9dd;max-width:600px;font-size:17px}
.hero-buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.hero .button{background:#d9bd8a;color:#243d2e}
.hero .button:hover{background:#ead5ad}
.hero .button-outline{background:transparent;border:1px solid rgba(255,255,255,.55);color:white}
.hero-art{min-height:310px;border:1px solid rgba(255,255,255,.22);border-radius:48% 48% 18px 18px;display:grid;place-items:center;background:linear-gradient(145deg,rgba(255,255,255,.1),rgba(255,255,255,.02));position:relative;overflow:hidden}
.hero-art:before{content:"";position:absolute;width:260px;height:260px;border:1px solid rgba(224,199,151,.4);border-radius:50%;box-shadow:0 0 0 22px rgba(224,199,151,.04),0 0 0 44px rgba(224,199,151,.035)}
.tea-leaf{position:relative;width:130px;height:200px;background:linear-gradient(140deg,#a3b27b,#436d4b 68%);border-radius:100% 0 100% 0;transform:rotate(35deg);box-shadow:inset -12px -5px 25px rgba(17,48,27,.25),0 20px 40px rgba(0,0,0,.16)}
.tea-leaf:after{content:"";position:absolute;left:49%;top:8%;width:2px;height:88%;background:rgba(235,226,187,.65);transform:rotate(-8deg)}
.section{padding:68px 0}
.section-cream{background:var(--tt-cream)}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:28px}
.section-kicker{font-size:12px;letter-spacing:.15em;text-transform:uppercase;color:#8b6a3b;font-weight:750}
.section-title{font-family:Georgia,"Times New Roman",serif;font-size:clamp(28px,3vw,42px);line-height:1.18;font-weight:500;margin:8px 0;color:var(--tt-green)}
.section-desc{color:var(--tt-muted);max-width:600px;margin:0}
.feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.feature-card{background:#fff;border:1px solid var(--tt-line);border-radius:var(--tt-radius);padding:25px;box-shadow:0 3px 12px rgba(47,42,32,.025)}
.feature-icon{width:48px;height:48px;border-radius:14px;background:#edf0e6;display:grid;place-items:center;font-size:23px;margin-bottom:18px}
.feature-card h3{font-family:Georgia,serif;font-size:22px;margin:0 0 8px;color:var(--tt-green)}
.feature-card p{margin:0;color:var(--tt-muted);font-size:14px}
.product-grid,.woocommerce ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;list-style:none;padding:0;margin:0}
.product-card,.woocommerce ul.products li.product{float:none!important;width:auto!important;margin:0!important;position:relative;background:#fff;border:1px solid var(--tt-line);border-radius:var(--tt-radius);overflow:hidden;padding:0 0 17px!important;text-align:left}
.product-card img,.woocommerce ul.products li.product a img{width:100%;aspect-ratio:1/1;object-fit:cover;margin:0 0 15px!important;background:#f0eadf}
.product-card .product-info{padding:0 16px}
.product-card h3,.woocommerce ul.products li.product .woocommerce-loop-product__title{font-family:Georgia,serif;font-size:18px!important;color:var(--tt-ink);padding:0!important;margin:0 0 5px!important}
.product-card .price,.woocommerce ul.products li.product .price{font-size:15px!important;font-weight:750;color:var(--tt-green)!important;margin:6px 0 12px!important}
.product-card .product-note{font-size:13px;color:var(--tt-muted)}
.woocommerce ul.products li.product .button{margin:0 16px!important;display:inline-block;font-size:13px}
.woocommerce span.onsale{top:12px!important;left:12px!important;right:auto!important;background:var(--tt-gold)!important;min-height:0!important;line-height:1.4!important;padding:5px 10px!important;border-radius:30px!important}
.product-grid .product-card .button{margin:10px 0 0;display:inline-block;font-size:13px}
.text-link{font-weight:700;border-bottom:1px solid #bda77d;padding-bottom:3px;white-space:nowrap}
.story-grid{display:grid;grid-template-columns:1fr 1fr;gap:55px;align-items:center}
.story-art{min-height:340px;border-radius:18px;background:linear-gradient(140deg,#d9c9a8,#eee5d2 55%,#a9b598);position:relative;display:grid;place-items:center;overflow:hidden}
.story-art:before{content:"";width:190px;height:260px;background:linear-gradient(145deg,#65845c,#254b37);border-radius:100% 0 100% 0;transform:rotate(35deg);box-shadow:inset -15px -8px 25px #183626}
.story-copy p{color:var(--tt-muted)}
.trust-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:26px}
.trust-item{display:flex;gap:12px;align-items:start}
.trust-item strong{display:block;font-size:14px}
.trust-item span{font-size:13px;color:var(--tt-muted)}
.cta-band{padding:42px;border-radius:20px;background:var(--tt-green);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:25px}
.cta-band h2{font-family:Georgia,serif;font-size:clamp(25px,3vw,36px);font-weight:500;margin:0 0 8px}
.cta-band p{margin:0;color:#e0e6dc}
.cta-band .button{background:#ddc28f;color:#263b2c;white-space:nowrap}
.page-header{background:var(--tt-cream);padding:48px 0}
.page-header h1{font-family:Georgia,serif;color:var(--tt-green);font-size:clamp(30px,4vw,46px);font-weight:500;margin:0}
.breadcrumbs{font-size:13px;color:var(--tt-muted);margin-bottom:8px}
.content-area{padding:42px 0 70px}
.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:40px}
.entry-content,.page-content{max-width:820px}
.entry-title{font-family:Georgia,serif;font-weight:500;line-height:1.2;color:var(--tt-green)}
.post-card{padding:0 0 25px;margin-bottom:25px;border-bottom:1px solid var(--tt-line)}
.post-card img{border-radius:12px;margin-bottom:15px}
.site-footer{background:#1f3829;color:#e9e5d9;padding:55px 0 20px}
.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:40px}
.site-footer h3,.site-footer h4{font-family:Georgia,serif;color:#f4e6c9;font-weight:500;margin:0 0 14px}
.site-footer p,.site-footer li,.site-footer a{font-size:14px;color:#d3d9cf}
.site-footer ul{list-style:none;padding:0;margin:0}
.site-footer li{margin:7px 0}
.footer-bottom{border-top:1px solid rgba(255,255,255,.15);margin-top:35px;padding-top:18px;font-size:12px;color:#b9c4b8;display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}
.widget-area .widget{margin-bottom:25px}
.widget-title{font-family:Georgia,serif;font-size:20px;color:var(--tt-green)}
.pagination{margin-top:30px}
.pagination .nav-links{display:flex;gap:8px}
.pagination .page-numbers{padding:7px 12px;border:1px solid var(--tt-line);border-radius:8px}
.pagination .current{background:var(--tt-green);color:#fff}
.woocommerce .woocommerce-breadcrumb{font-size:13px;color:var(--tt-muted)}
.woocommerce div.product div.images img{border-radius:14px}
.woocommerce div.product .product_title{font-family:Georgia,serif;color:var(--tt-green);font-weight:500}
.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--tt-green)}
.woocommerce div.product form.cart .variations select{min-width:150px}
.woocommerce table.shop_table{border-color:var(--tt-line);border-radius:10px}
.woocommerce-message,.woocommerce-info{border-top-color:var(--tt-green)}
.woocommerce-message:before,.woocommerce-info:before{color:var(--tt-green)}
.woocommerce #reviews #comments ol.commentlist li img.avatar{border-radius:50%}
.woocommerce .quantity .qty{width:4em}
.woocommerce nav.woocommerce-pagination ul{border:0;display:flex;gap:6px}
.woocommerce nav.woocommerce-pagination ul li{border:0}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{border:1px solid var(--tt-line);border-radius:8px;padding:10px 13px}
.woocommerce nav.woocommerce-pagination ul li span.current{background:var(--tt-green);color:#fff}
.alignwide{max-width:1160px;margin-left:auto;margin-right:auto}
.alignfull{width:100%;max-width:none}
.wp-block-image img{border-radius:10px}
.wp-block-quote{border-left:3px solid var(--tt-gold);padding-left:20px}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.hero-grid{gap:28px}.product-grid,.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}.feature-grid{grid-template-columns:repeat(2,1fr)}.content-layout{grid-template-columns:1fr}.footer-grid{grid-template-columns:1fr 1fr}.story-grid{gap:30px}.trust-row{grid-template-columns:1fr}}
@media(max-width:640px){.container{width:min(100% - 28px,1160px)}.header-top{padding:13px 0}.brand-name{font-size:23px}.brand-tagline{font-size:10px}.brand-mark{width:40px;height:40px}.header-actions{gap:8px}.header-actions a{font-size:12px}.header-actions .account-link{display:none}.main-nav .container{display:block}.mobile-menu-toggle{display:flex;justify-content:space-between;align-items:center;width:100%;border-radius:0;background:transparent;color:var(--tt-green);padding:12px 0}.primary-menu{display:none;flex-direction:column;align-items:stretch;gap:0;padding:0 0 12px}.primary-menu.is-open{display:flex}.primary-menu a{padding:10px 0;border-top:1px solid var(--tt-line)}.hero{padding:52px 0 48px}.hero-grid{grid-template-columns:1fr}.hero-art{min-height:180px;max-height:200px}.tea-leaf{width:75px;height:115px}.hero h1{font-size:42px}.hero p{font-size:15px}.section{padding:48px 0}.section-head{align-items:start;flex-direction:column}.feature-grid{grid-template-columns:1fr}.product-grid,.woocommerce ul.products{gap:12px}.product-card .product-info{padding:0 12px}.product-card h3{font-size:16px}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:16px!important}.woocommerce ul.products li.product .button{margin:0 12px!important;padding:10px 12px;font-size:12px}.story-grid{grid-template-columns:1fr}.story-art{min-height:230px}.cta-band{padding:27px;align-items:flex-start;flex-direction:column}.footer-grid{grid-template-columns:1fr;gap:25px}.footer-bottom{flex-direction:column}.page-header{padding:34px 0}.content-area{padding:28px 0 50px}}
