/* TỊNH AGARWOOD | P0–P3 unified, reversible, scoped experience refinements */
body.tinhqa-active{--tinhqa-navy:#113a4b;--tinhqa-gold:#c4a16b;--tinhqa-cream:#faf8f4;--tinhqa-outline:rgba(17,58,75,.13)}
body.tinhqa-active a,body.tinhqa-active button{outline-offset:3px}
body.tinhqa-active :where(a,button,input,textarea,select):focus-visible{outline:2px solid var(--tinhqa-gold)!important}
body.tinhqa-active .tinh-shell{max-width:var(--shell-width,1280px)}
body.tinhqa-active .hero-copy h1{letter-spacing:-.022em;line-height:1.07;overflow-wrap:normal}
body.tinhqa-active .hero-copy .hero-kicker{letter-spacing:.13em}
body.tinhqa-active .hero-copy p{line-height:1.75;max-width:52ch}
body.tinhqa-active .hero-actions .primary-btn,body.tinhqa-active .hero-actions .story-btn{min-height:45px}
body.tinhqa-active .hero-photo,body.tinhqa-active .hero-photo picture{background:#f6f2e9}
body.tinhqa-active .hero-photo picture img{object-fit:contain!important;object-position:center!important}
body.tinhqa-active .tinh-footer a:hover{text-decoration:underline;text-underline-offset:4px}

/* Shop/catalog: stable card sizes, no cut-off of source product photos */
body.tinhqa-active :where(.woocommerce ul.products,.woocommerce-page ul.products){align-items:stretch}
body.tinhqa-active :where(.woocommerce ul.products,.woocommerce-page ul.products) li.product{
 display:flex;flex-direction:column;min-width:0;border-radius:15px;
 transition:transform .18s ease,box-shadow .18s ease;
}
body.tinhqa-active .woocommerce ul.products li.product:hover{transform:translateY(-2px)}
body.tinhqa-active .woocommerce ul.products li.product :where(a img,.attachment-woocommerce_thumbnail){
 width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;background:#f9f7f2;
 border-radius:12px;display:block;
}
body.tinhqa-active .woocommerce ul.products li.product .woocommerce-loop-product__title{
 font-size:15px;line-height:1.48;min-height:3em;font-weight:600;
 display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
body.tinhqa-active .woocommerce ul.products li.product .price{font-variant-numeric:tabular-nums;margin-top:auto}
body.tinhqa-active .woocommerce ul.products li.product :where(.button,.tinh-polish-buy-now){
 border-radius:999px;min-height:40px;display:inline-flex;align-items:center;justify-content:center;
 text-align:center;padding:9px 14px;font-size:13px;line-height:1.35;
}
body.tinhqa-active .woocommerce span.onsale{padding:6px 9px;border-radius:999px;letter-spacing:.01em;font-size:11px;min-height:0;line-height:1.2}
body.tinhqa-active .term-description{max-width:74ch;line-height:1.7}
body.tinhqa-active .tinhqa-expandable-description:not(.tinhqa-desc-expanded){max-height:7.8em;overflow:hidden;position:relative}
body.tinhqa-active .tinhqa-expandable-description:not(.tinhqa-desc-expanded)::after{content:"";position:absolute;bottom:0;left:0;right:0;height:2em;background:linear-gradient(transparent,#faf8f4)}
body.tinhqa-active .tinhqa-read-more{color:var(--tinhqa-navy);font-weight:600;background:transparent;border:0;padding:7px 2px;cursor:pointer}

/* Product: generous hierarchy, one obvious main purchase CTA, genuine photos preserved */
body.tinhqa-active.single-product .tinh-product-summary .product_title{font-family:Georgia,'Times New Roman',serif;letter-spacing:-.016em;line-height:1.22;font-size:clamp(24px,2.7vw,38px)}
body.tinhqa-active.single-product .tinh-product-summary .price{font-weight:700;letter-spacing:-.01em}
body.tinhqa-active.single-product .tinh-product-summary .woocommerce-product-details__short-description{line-height:1.72;color:#4c5960}
body.tinhqa-active.single-product .tinh-product-summary form.cart{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
body.tinhqa-active.single-product .tinh-product-summary form.cart :where(button.single_add_to_cart_button,a.tinh-polish-buy-now){border-radius:999px;min-height:46px;flex:1 1 190px}
body.tinhqa-active.single-product .tinh-product-summary .tinh-product-trust{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
body.tinhqa-active.single-product .tinh-product-summary .tinh-product-trust span{min-width:0;line-height:1.45}
body.tinhqa-active.single-product .tinh-product-support{font-size:13px}
body.tinhqa-active.single-product .tinh-product-note{line-height:1.65}
body.tinhqa-active.single-product .tinh-product-main-media{overflow:hidden;border-radius:16px}
body.tinhqa-active.single-product #tinh-product-main-image{max-width:100%;object-fit:contain;cursor:zoom-in}
body.tinhqa-active.single-product .tinh-gallery-nav svg{stroke-width:1.85px}
body.tinhqa-active.single-product .woocommerce-Tabs-panel :where(p,li){line-height:1.74}
body.tinhqa-active.single-product .woocommerce-Tabs-panel h2{font-size:clamp(20px,2.1vw,27px);line-height:1.35}
body.tinhqa-active.single-product .woocommerce-Tabs-panel h3{font-size:clamp(17px,1.8vw,21px);line-height:1.4}
body.tinhqa-active .tinhqa-safety-warning{background:#fff4ef;border:1px solid #c56b48;border-radius:10px;padding:14px 16px;line-height:1.6;color:#792e19;margin:12px 0}
body.tinhqa-active .tinhqa-duplicate-buy{display:none!important}
body.tinhqa-active.single-product .tinhqa-product-facts{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}
body.tinhqa-active.single-product .tinhqa-product-facts span{padding:7px 10px;background:#f6f4f0;color:#334b54;border-radius:7px;font-size:12px}
body.tinhqa-active .tinhqa-lightbox{position:fixed;inset:0;z-index:999999;background:rgba(10,23,29,.93);display:flex;align-items:center;justify-content:center;padding:44px 20px 20px}
body.tinhqa-active .tinhqa-lightbox img{max-width:100%;max-height:90%;object-fit:contain}
body.tinhqa-active .tinhqa-lightbox button{position:absolute;top:12px;right:14px;border:1px solid rgba(255,255,255,.6);border-radius:99px;background:#113a4b;color:#fff;padding:6px 16px;cursor:pointer}

/* Knowledge: empty-card fallback never generates faux product imagery */
body.tinhqa-active .post-grid article{background:#fff;border:1px solid rgba(17,58,75,.06);border-radius:13px;overflow:hidden;transition:box-shadow .18s ease}
body.tinhqa-active .post-grid article:hover{box-shadow:0 8px 30px rgba(17,58,75,.09)}
body.tinhqa-active .post-grid article img{width:100%;aspect-ratio:4/3;object-fit:contain;background:#f6f3ee}
body.tinhqa-active .post-grid article.tinhqa-no-cover>a:before{content:'TỊNH AGARWOOD  ·  KIẾN THỨC';display:flex;align-items:center;justify-content:center;min-height:128px;background:linear-gradient(130deg,#e7e5df,#f8f5ee);color:#526b75;font-size:12px;letter-spacing:.09em}

/* Contact form: ensure explicit labels and user-friendly touch targets */
body.tinhqa-active .contact-grid form input,body.tinhqa-active .contact-grid form textarea{border-radius:9px;min-height:44px}
body.tinhqa-active .contact-grid form textarea{min-height:150px}
body.tinhqa-active .contact-grid form button[type=submit]{min-height:44px}
body.tinhqa-active .contact-grid form label{line-height:1.6}

/* Cart / checkout / policies */
body.tinhqa-active :where(.woocommerce-cart,.woocommerce-checkout) :where(input,select,textarea){min-height:42px}
body.tinhqa-active :where(.woocommerce-cart,.woocommerce-checkout) .button{min-height:40px;border-radius:999px}
body.tinhqa-active .page-content :where(p,li){line-height:1.72}

/* Preview-only sticky notice: never appears for customers even after publish */
body.tinhqa-preview .tinhqa-banner{position:fixed;left:0;right:0;bottom:0;z-index:999998;padding:10px 16px;background:#102f3b;color:#fff;display:flex;align-items:center;gap:14px;justify-content:center;flex-wrap:wrap;box-shadow:0 -3px 15px rgba(0,0,0,.2)}
body.tinhqa-preview .tinhqa-banner strong{color:#edca8c}
body.tinhqa-preview .tinhqa-banner a{color:#fff;text-decoration:underline}

@media(max-width:1024px){
 body.tinhqa-active .hero-copy h1{font-size:clamp(28px,4vw,52px)}
 body.tinhqa-active .hero-photo picture img{object-fit:contain!important}
}
@media(max-width:782px){
 body.tinhqa-active .hero-copy h1{font-size:clamp(32px,7vw,46px)}
 body.tinhqa-active.single-product .tinh-product-summary .product_title{font-size:26px}
 body.tinhqa-active.single-product .tinh-product-summary form.cart{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px}
 body.tinhqa-active.single-product .tinh-product-summary form.cart .quantity{grid-row:1;grid-column:1}
 body.tinhqa-active.single-product .tinh-product-summary form.cart .single_add_to_cart_button{grid-row:1;grid-column:2;width:100%}
 body.tinhqa-active.single-product .tinh-product-summary form.cart .tinh-polish-buy-now{grid-column:1/-1;width:100%}
 body.tinhqa-active.single-product .tinh-product-summary .tinh-product-trust{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.tinhqa-active .post-grid article img{aspect-ratio:4/3}
 body.tinhqa-preview .tinhqa-banner{font-size:11px;gap:7px;padding:9px}
}
@media(max-width:420px){
 body.tinhqa-active.single-product .tinh-product-summary .product_title{font-size:23px}
 body.tinhqa-active.single-product .tinh-product-summary .tinh-product-trust span{font-size:11px}
 body.tinhqa-active .woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px}
}
@media(prefers-reduced-motion:reduce){body.tinhqa-active *{scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* v1.4.0 – mobile/tablet first-fold density. No hidden CTA, no gallery/checkout changes. */
@media (max-width:782px){
 body.home.tinhqa-active .hero-copy{padding-top:21px!important;padding-bottom:14px!important}
 body.home.tinhqa-active .hero-copy .hero-kicker{margin-bottom:7px!important}
 body.home.tinhqa-active .hero-copy h1{font-size:clamp(34px,9vw,43px)!important;line-height:1.05!important;margin-bottom:10px!important}
 body.home.tinhqa-active .hero-copy p{font-size:13px!important;line-height:1.5!important;margin-bottom:12px!important}
 body.home.tinhqa-active .hero-actions{gap:9px!important;margin-bottom:6px!important}
 body.home.tinhqa-active .hero-proof{gap:6px 12px!important;margin-top:10px!important;line-height:1.35!important}
 body.home.tinhqa-active .hero-photo{min-height:0!important}
}
@media (min-width:783px) and (max-width:1180px){
 body.home.tinhqa-active .hero-copy{padding-top:28px!important;padding-bottom:22px!important}
 body.home.tinhqa-active .hero-copy h1{font-size:clamp(39px,4.4vw,53px)!important;line-height:1.05!important;margin-bottom:12px!important}
 body.home.tinhqa-active .hero-copy p{line-height:1.55!important}
}
