/*
Theme Name: Tâm Cà Coffee
Description: Giao diện cửa hàng Tâm Cà Coffee.
Version: 1.0.14
Text Domain: tam-ca-coffee
*/
:root{
  --ink:#010101;
  --black:#000;
  --brown:#392405;
  --field-ink:#111;
  --muted:#282828;
  --gold:#f6e7bc;
  --honey:#f5c65f;
  --surface:#f9f7f7;
  --white:#fff;
  --line:#cbd5e0;
  --focus:var(--brown);
  --max:1220px;
}
*{box-sizing:border-box}
html{scroll-padding-top:1rem}
body{margin:0;background:var(--white);color:var(--ink);font:16px/1.65 system-ui,sans-serif}
a{color:var(--black);text-underline-offset:.2em}
a:hover{color:var(--brown)}
:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
img{max-width:100%;height:auto}
h1,h2,h3{color:var(--black);line-height:1.13;margin:0 0 .65em;font-family:Georgia,'Times New Roman',serif}
h1{font-size:clamp(2.3rem,6vw,4.6rem)}
h2{font-size:clamp(1.75rem,3.6vw,3rem)}
p{margin:0 0 1em}
.shell{width:min(var(--max),calc(100% - 3rem));margin-inline:auto}
.skip-link{position:absolute;top:0;left:1rem;z-index:5;padding:.7rem 1rem;background:var(--white);transform:translateY(-150%)}
.skip-link:focus{transform:none}
.site-header{border-bottom:1px solid var(--line)}
.brand-line{margin:0;padding:.35rem 1rem;text-align:center;background:var(--brown);color:var(--gold);font-size:.7rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase}
.header-row{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;min-height:76px}
.brand{display:inline-flex;align-items:center;gap:.6rem;text-decoration:none;font:bold 1.45rem Georgia,serif}
.brand img{display:block;object-fit:contain;width:120px;height:64px}
.site-nav{display:flex;flex-wrap:wrap;gap:.25rem 1.45rem;align-items:center}
.site-nav a,.contact-menu summary,.contact-menu-panel a,.header-actions a{display:inline-flex;align-items:center;min-height:44px;font-weight:650;text-decoration:none}
.site-nav a{color:var(--brown)}
.site-nav a:hover{color:var(--black);text-decoration:underline}
.contact-menu{position:relative}
.contact-menu summary{gap:.35rem;color:var(--brown);cursor:pointer;list-style:none}
.contact-menu summary::-webkit-details-marker{display:none}
.contact-menu summary::after{content:"";width:.38em;height:.38em;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(45deg) translateY(-.1em)}
.contact-menu[open] summary::after{transform:rotate(225deg)}
.contact-menu-panel{position:absolute;z-index:4;inset-block-start:100%;inset-inline-end:0;width:13rem;max-width:calc(100vw - 2rem);margin:0;padding:.25rem;list-style:none;background:var(--white);border:1px solid var(--line);box-shadow:0 .35rem 1rem #3924051f}
.contact-menu-panel a{width:100%;gap:.55rem;padding:0 .6rem;color:var(--brown);border-radius:.3rem}
.contact-menu-panel a:hover,.contact-menu-panel a:focus-visible{background:var(--gold)}
.site-icon{width:1.125rem;height:1.125rem;flex:none}
.site-icon--zalo{color:#1253bf}
.site-icon--whatsapp{color:#176c38}
.contact-menu-panel .site-icon{width:1.75rem;height:1.75rem;padding:.3rem;border-radius:.4rem;background:#f7eed9}
.contact-menu-panel .site-icon--zalo{background:#e6f0ff}
.contact-menu-panel .site-icon--whatsapp{background:#e1f6e8}
.header-actions{display:flex;align-items:center;gap:.9rem;white-space:nowrap}
.cart-link{gap:.4rem;padding-inline:.7rem;border:1px solid var(--line);border-radius:3px}
.cart-count{min-width:1.35rem;padding:0 .25rem;border-radius:20px;background:var(--brown);color:var(--white);text-align:center;font-size:.75rem}
.hero{display:grid;grid-template-columns:1.05fr 1fr;background:var(--surface);color:var(--brown)}
.hero h1{color:inherit;font-size:clamp(2.25rem,4.8vw,4rem)}
.hero-copy{align-self:center;padding:clamp(2rem,4.2vw,4rem) clamp(1.5rem,5vw,5rem)}
.hero-copy p:not(.eyebrow){max-width:40ch;color:var(--muted);font-size:1.08rem}
.hero-image{position:relative;min-height:400px;background:var(--brown);overflow:hidden}
.hero-image img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover}
.eyebrow{font-size:.73rem;font-weight:800;letter-spacing:.15em;text-transform:uppercase;margin-bottom:1rem}
.actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.65rem;align-items:center}
.btn,.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.shop-tools button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:0;border-radius:3px;padding:.72rem 1.15rem;background:var(--black);color:var(--white);text-decoration:none;font:700 .9rem/1.4 system-ui,sans-serif;cursor:pointer}
.btn:hover,.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.shop-tools button:hover{background:var(--brown);color:var(--white)}
.hero .btn{background:var(--brown);color:var(--white)}
.hero .btn:hover{background:var(--black)}
.actions .text-link{display:inline-flex;align-items:center;gap:.35rem;min-height:44px;color:var(--brown);font-weight:650}
.home-section{padding:clamp(2rem,4.5vw,4rem) 0}
.home-section+.home-section{border-top:1px solid var(--line)}
.section-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:1rem;margin-bottom:1.15rem}
.section-head h2{margin-bottom:0}
#chon-gu-title{margin-bottom:.6rem}
.finder-home-count{margin-bottom:1.15rem;color:var(--muted)}
.finder-home-count strong{color:var(--brown);font-variant-numeric:tabular-nums}
.taste-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.taste-card{display:flex;flex-direction:column;gap:.4rem;padding:1rem;border:1px solid #e5d8bc;border-radius:.55rem;background:#faf8f4;text-decoration:none}
.taste-card:hover,.taste-card:focus-visible{border-color:#ac8440;background:#fff8e8}
.taste-card-icons{display:flex;align-items:center;justify-content:space-between;color:var(--brown);margin-bottom:.25rem}
.taste-card-icons .site-icon:first-child{width:2.25rem;height:2.25rem;padding:.4rem;border-radius:.45rem;background:var(--gold)}
.taste-card strong{font:700 1.22rem/1.25 Georgia,serif;color:var(--brown)}
.taste-card span{font-size:.88rem}
.home-help{background:#faf3e4}
.home-brew{display:grid;align-items:center;gap:clamp(1.3rem,4vw,3.25rem)}
.home-brew--with-image{grid-template-columns:minmax(0,1fr) minmax(0,450px)}
.home-brew-copy h2{color:var(--brown);margin-bottom:.55rem}
.home-brew-copy p:not(.eyebrow){max-width:48ch}
.home-brew-copy .actions{margin-top:.8rem}
.home-brew-media{margin:0;aspect-ratio:4/3;overflow:hidden;border-radius:.65rem;background:var(--gold)}
.home-brew-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 60%}
.brew-product-link{display:inline-flex;align-items:center;flex-wrap:wrap;gap:.4rem;min-height:44px;font-weight:650}
.brew-product-link strong{padding:.15rem .5rem;border-radius:2rem;background:var(--gold);color:var(--brown);font-size:.88rem;font-variant-numeric:tabular-nums}
.buying-guide dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:0}
.buying-guide dl div{padding:1rem;border:1px solid var(--line);background:var(--surface)}
.buying-guide dt{margin-bottom:.5rem;font-weight:750;color:var(--brown)}
.buying-guide dd{margin:0}
.catalog-links{margin-top:2rem;border-top:1px solid var(--line);padding-top:1.2rem}
.catalog-links h2{font-size:1.35rem}
.catalog-links ul{display:flex;flex-wrap:wrap;gap:.5rem 1rem;margin:0;padding:0;list-style:none}
.category-intro{max-width:66ch}
.shop-tools{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto auto;align-items:end;gap:.65rem;margin-bottom:1.3rem;padding:.85rem;background:var(--surface);border:1px solid var(--line);scroll-margin-top:.75rem}
.shop-tools label{display:grid;gap:.2rem;font-size:.85rem;font-weight:650;min-width:0}
.shop-tools label :is(input,select){min-height:44px;font-size:1rem;width:100%}
.shop-tools a{display:inline-flex;align-items:center;min-height:44px;font-size:.88rem}
.coffee-finder-form{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
.coffee-finder-form a{grid-column:1/-1}
.finder-results-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:.9rem}
.prose .finder-results-heading h2{margin:0}
.finder-result-count{margin:0;padding:.3rem .65rem;border-radius:2rem;background:var(--gold);color:var(--brown);font-size:.85rem;white-space:nowrap}
.finder-result-count strong{font-size:1rem;font-variant-numeric:tabular-nums}
.finder-active-filters{display:flex;flex-wrap:wrap;gap:.4rem;margin:0 0 1rem;padding:0;list-style:none}
.finder-active-filters li{padding:.2rem .55rem;border:1px solid var(--line);border-radius:2rem;color:var(--muted);font-size:.84rem}
.finder-empty-actions a{display:inline-flex;align-items:center;min-height:44px}
.shop-finder-link a{display:flex;align-items:center;gap:.6rem;min-height:44px;padding:.45rem .7rem;border:1px solid #e5d8bc;border-radius:.4rem;background:#faf3e4;color:var(--brown);font-weight:650;text-decoration:none}
.shop-finder-link a:hover,.shop-finder-link a:focus-visible{background:var(--gold)}
.shop-finder-link .site-icon--arrow{margin-inline-start:auto}
.finder-card-taste{margin:.25rem 0 0;font-size:.82rem;line-height:1.4;color:var(--muted)}
.coffee-path-link{font-weight:600}
.brew-section{padding:1rem 0;border-top:1px solid var(--line);scroll-margin-top:1rem}
.prose .brew-section h2{margin-top:0}
.brew-nav{display:flex;flex-wrap:wrap;gap:.4rem .9rem;padding:0;list-style:none}
.brew-nav a{display:inline-flex;align-items:center;min-height:44px}
.biz-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.75rem;padding:0;list-style:none}
.biz-choices li{padding:1rem;border:1px solid var(--line);background:var(--surface)}
.biz-choices h3{font-size:1.22rem}
.biz-pack{display:block;font-size:.85rem;color:var(--muted)}
input:not([type=checkbox]):not([type=radio]),select,textarea{font:inherit;border:1px solid var(--line);border-radius:3px;background:var(--white);color:var(--field-ink);padding:.55rem .65rem;max-width:100%}
main.page-shell{padding-block:clamp(2rem,5vw,4.5rem);min-height:48vh}
.prose{max-width:760px;margin-inline:auto}
.prose img{height:auto}
.prose .wp-caption{max-width:100%}
.editorial-note{padding:.8rem 1rem;border-inline-start:3px solid var(--gold);background:var(--surface)}
.editorial-archive{overflow-wrap:anywhere}
.editorial-archive figure,.editorial-figure{margin:1.5rem 0}
.editorial-archive img,.editorial-figure img{display:block;max-width:100%;height:auto;margin-inline:auto}
.editorial-archive figcaption{margin-top:.4rem;font-size:.9rem;text-align:center}
.editorial-table{max-width:100%;overflow-x:auto}
.catalog-buying-guide{margin-block:2.5rem 1.5rem}
.prose iframe{max-width:100%}
.prose h2{margin-top:1.4em}
.prose table{width:100%;border-collapse:collapse}
.prose th,.prose td{border:1px solid var(--line);padding:.55em;vertical-align:top;text-align:left;overflow-wrap:anywhere}
.contact-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin:1rem 0 1.25rem}
.contact-actions .btn{gap:.45rem}
.contact-actions .btn + .btn{background:var(--white);color:var(--brown);border:1px solid var(--brown)}
.contact-actions .btn + .btn:hover{background:var(--gold)}
.store-contact{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.store-contact div{padding:.85rem 1rem;border:1px solid var(--line);background:var(--surface);overflow-wrap:anywhere}
.store-contact dt{font-weight:700;color:var(--brown)}
.store-contact dd{margin:.25rem 0 0}
.post-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.25rem}
.post-card{background:var(--surface);border:1px solid var(--line);padding:1.1rem;overflow-wrap:anywhere}
.post-card img{width:100%;height:auto;aspect-ratio:4/3;object-fit:cover}
.post-card h3{font-size:1.35rem;margin:.75rem 0 .35rem}
.post-card h3 a{text-decoration:none}
.post-card time{font-size:.8rem;color:var(--muted)}
.site-footer{background:var(--gold);border-top:1px solid var(--line);padding:2rem 0}
.site-footer--with-floating-contact{padding-bottom:4.75rem}
.floating-contact{position:fixed;z-index:4;inset-inline-end:max(1rem,env(safe-area-inset-right));inset-block-end:calc(1rem + env(safe-area-inset-bottom))}
.floating-contact-toggle{gap:.5rem;min-height:48px;padding:.65rem .95rem;border:1px solid #8a5d16;border-radius:2rem;background:var(--honey);color:var(--brown);list-style:none;box-shadow:0 .35rem 1rem #39240540}
.floating-contact-toggle:hover,.floating-contact[open] .floating-contact-toggle{background:#ffda85;color:var(--brown);box-shadow:0 .45rem 1.2rem #39240555}
.floating-contact-toggle::-webkit-details-marker{display:none}
.floating-contact-toggle .site-icon{width:1.4rem;height:1.4rem}
.floating-contact-toggle .site-icon--close,.floating-contact[open] .site-icon--chat{display:none}
.floating-contact[open] .site-icon--close{display:block}
.floating-contact .contact-menu-panel{inset-block-start:auto;inset-block-end:calc(100% + .5rem);max-height:calc(100vh - 6rem - env(safe-area-inset-bottom));max-height:calc(100dvh - 6rem - env(safe-area-inset-bottom));overflow-y:auto;border-color:#ddcaa2;border-radius:.65rem;box-shadow:0 .6rem 1.6rem #3924052b}
@media(prefers-reduced-motion:no-preference){
  .taste-card,.shop-finder-link a{transition:background-color .18s ease,border-color .18s ease}
  .taste-card .site-icon--arrow,.shop-finder-link .site-icon--arrow{transition:transform .18s ease}
  .taste-card:is(:hover,:focus-visible) .site-icon--arrow,.shop-finder-link a:is(:hover,:focus-visible) .site-icon--arrow{transform:translateX(.2rem)}
  .floating-contact-toggle{transition:background-color .18s ease,box-shadow .18s ease,transform .18s ease}
  .floating-contact-toggle:active{transform:scale(.96)}
  .floating-contact[open] .contact-menu-panel{animation:contact-panel-in .18s ease-out}
  @keyframes contact-panel-in{from{opacity:0;transform:translateY(.35rem)}to{opacity:1;transform:translateY(0)}}
}
.footer-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem}
.footer-row p{margin:0}
.woocommerce ul.products[class*="columns-"]{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem}
.woocommerce ul.products.columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.woocommerce ul.products.columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.woocommerce ul.products[class*="columns-"]::before,.woocommerce ul.products[class*="columns-"]::after{display:none}
.woocommerce ul.products[class*="columns-"] li.product{display:flex;flex-direction:column;align-items:flex-start;width:auto;min-width:0;margin:0;padding:.8rem;border:1px solid var(--line);background:var(--surface)}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link{flex:1;width:100%}
.woocommerce ul.products li.product a img{aspect-ratio:1;object-fit:contain;background:var(--white)}
.woocommerce ul.products li.product .woocommerce-loop-product__title{color:var(--brown);font-size:1.1rem;overflow-wrap:anywhere}
.woocommerce ul.products li.product .price,.woocommerce div.product p.price,.woocommerce div.product span.price{color:var(--ink);font-weight:700}
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper img.tamca-bottle-portrait{width:min(100%,340px);height:400px;margin-inline:auto;object-fit:cover;object-position:center 65%}
.product-family,.product-pack{display:block;color:var(--muted);font-size:.82rem}
.product-family{font-weight:650}
.product-help{font-size:.88rem}
.product-details{margin:.6rem 0 .85rem;font-size:.89rem;line-height:1.4}
.product-details div{display:grid;grid-template-columns:7rem minmax(0,1fr);gap:.45rem;margin-bottom:.22rem}
.product-details dt{font-weight:700;color:var(--brown)}
.product-details dd{margin:0}
.product-delivery{display:flex;align-items:flex-start;gap:.45rem;padding:.48rem .65rem;border-left:3px solid var(--brown);background:var(--gold);font-size:.86rem;line-height:1.4}
.product-delivery .site-icon{width:1rem;height:1rem;margin-top:.07rem;color:var(--brown)}
.product-delivery strong{margin-right:.25rem}
.product-delivery a{white-space:nowrap}
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt{background:var(--black);color:var(--white)}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,.woocommerce input.button.alt:hover{background:var(--brown)}
.woocommerce form .form-row .input-text{min-height:44px}
.checkout-note{padding:.9rem 1.1rem;border-left:3px solid var(--brown);background:var(--gold);margin:0 0 1.5rem}
.tamca-shipping-row td{font-weight:650}
.woocommerce-checkout #payment{background:var(--surface)}
.woocommerce-checkout #payment ul.payment_methods{border-bottom-color:var(--line)}
.woocommerce-checkout #payment div.payment_box{background:var(--gold);color:var(--ink)}
.woocommerce-checkout #payment div.payment_box::before{border-bottom-color:var(--gold)}
.woocommerce-breadcrumb,.woocommerce-result-count{font-size:.9rem}
.alignwide,.alignfull{max-width:100%}
@media(max-width:760px){
  .shell{width:calc(100% - 2rem)}
  .buying-guide dl{grid-template-columns:1fr}
  .header-row{display:grid;grid-template-columns:1fr auto;gap:0 .7rem;padding-block:.5rem}
  .site-nav{position:relative;grid-column:1/-1;grid-row:2;gap:0 .85rem;font-size:.86rem}
  .contact-menu{position:static}
  .brand img{width:92px;height:44px}
  .header-actions{grid-column:2;grid-row:1;font-size:.86rem;gap:.5rem}
  .cart-link{padding-inline:.42rem}
  .hero{grid-template-columns:1fr}
  .hero-image{height:clamp(140px,42vw,225px);min-height:0}
  .hero-copy{padding:1.7rem 1rem}
  .taste-grid,.woocommerce ul.products[class*="columns-"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}
  .shop-tools{grid-template-columns:minmax(0,1fr) auto}
  .shop-tools label:first-child,.shop-tools a{grid-column:1/-1}
  .coffee-finder-form,.biz-choices,.store-contact,.home-brew--with-image{grid-template-columns:1fr}
  .post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}
  .woocommerce ul.products[class*="columns-"] li.product{padding:.55rem}
  .woocommerce ul.products li.product .button{padding:.58rem .65rem;font-size:.8rem;min-height:44px}
  .single-product main.page-shell{padding-top:1.25rem}
  .woocommerce.single-product .woocommerce-breadcrumb{margin-bottom:.65rem}
  .woocommerce div.product div.images{margin-bottom:.65rem}
  .woocommerce div.product div.images .woocommerce-product-gallery__wrapper img:not(.zoomImg){max-height:min(44vw,220px);object-fit:contain}
  .woocommerce div.product div.images .woocommerce-product-gallery__wrapper img.tamca-bottle-portrait{width:min(100%,190px);height:min(44vw,220px);object-fit:cover}
  .woocommerce div.product div.images > .woocommerce-product-gallery__wrapper:has(.tamca-bottle-portrait){height:calc(min(44vw,220px) + 48px + .2rem);overflow:hidden}
  .woocommerce div.product div.images:has(.tamca-bottle-portrait) .flex-viewport{min-height:min(44vw,220px);max-height:min(44vw,220px)}
  .woocommerce div.product div.images .flex-control-thumbs li{width:48px;margin:.2rem .25rem 0 0}
  .woocommerce div.product div.images .flex-control-thumbs img{height:48px;object-fit:contain}
  .woocommerce div.product .product_title{font-size:clamp(1.9rem,6.5vw,2.6rem);margin-bottom:.32em}
  .woocommerce div.product p.price{margin-bottom:.55rem}
  .product-details div{grid-template-columns:7rem minmax(0,1fr)}
}
@media(max-width:470px){
  .floating-contact-toggle{width:48px;padding:0}
  .floating-contact-label{display:none}
  .post-grid{grid-template-columns:1fr}
  .woocommerce .woocommerce-ordering,.woocommerce .woocommerce-result-count{float:none}
}
@media(max-width:360px){
  .site-nav{justify-content:space-between;column-gap:.3rem}
}
