/* What WooCommerce prints itself (form rows, notices, order tables) dressed in the demo's tokens, plus small helpers replacing the demo's inline styles. */
.tf-woo .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.tf-woo .tf-woo-h1{font-size:clamp(30px,4vw,44px)}
.tf-woo .tf-woo-h2{font-size:20px}
.tf-woo .tf-woo-short{padding-bottom:20px}
.tf-woo .tf-woo-tight{padding-top:12px}
.tf-woo .tf-woo-line{font-size:18px}
.tf-woo .tf-woo-back{margin-top:16px}
.tf-woo .tf-woo-gap{margin-top:36px}
.tf-woo .tf-woo-gap-s{margin-top:14px}
.tf-woo .tf-woo-gap-m{margin-top:28px}
.tf-woo .tf-woo-sub{margin-top:8px;color:var(--ink-2)}
.tf-woo .tf-woo-submit{margin-top:8px}
.tf-woo .tf-woo-empty{padding:24px;border:1px dashed var(--line);border-radius:var(--r-md);color:var(--ink-2)}
.tf-woo .tf-woo-empty a{color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.tf-woo .filters form{display:grid;gap:4px;align-content:start}
.tf-woo .pager .current{background:var(--brand);border-color:var(--brand);color:#fff}
.tf-woo .pager .dots{border:0}
.tf-woo .citem img{max-width:none}
.tf-woo .citem dl.variation{font-size:13.5px;color:var(--muted);margin:2px 0 0}
.tf-woo .citem dl.variation dt,.tf-woo .citem dl.variation dd,.tf-woo .citem dl.variation p{display:inline;margin:0;font-weight:500}
.tf-woo .sum dd .woocommerce-remove-coupon{font-size:13px;color:var(--muted)}

.tf-woo .tf-woo-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:14px}
.tf-woo .tf-woo-fields .form-row{display:grid;gap:6px;min-width:0;margin:0;padding:0;float:none;width:auto}
.tf-woo .tf-woo-fields .form-row-wide{grid-column:1/-1}
.tf-woo .form-row label{margin:0;font-size:14px;font-weight:650;color:var(--ink);line-height:1.4}
.tf-woo .form-row label .required{color:#B42318;text-decoration:none}
.tf-woo .form-row label .optional{font-weight:500;color:var(--muted)}
.tf-woo .form-row .input-text,.tf-woo .form-row select,.tf-woo .form-row textarea{width:100%;min-width:0;min-height:48px;padding:10px 14px;border:1px solid var(--line);border-radius:var(--r-sm);font:inherit;color:var(--ink);background:#fff;box-shadow:none}
.tf-woo .form-row .input-text:focus,.tf-woo .form-row select:focus,.tf-woo .form-row textarea:focus{outline:2px solid var(--brand-2);outline-offset:1px}
.tf-woo .form-row.woocommerce-invalid .input-text,.tf-woo .form-row.woocommerce-invalid select{border-color:#B42318}
.tf-woo .form-row .select2-container .select2-selection--single{height:48px;border:1px solid var(--line);border-radius:var(--r-sm)}
.tf-woo .form-row .select2-container .select2-selection__rendered{line-height:46px;padding-left:14px}
.tf-woo .form-row .select2-container .select2-selection__arrow{height:46px}
.tf-woo .form-row .woocommerce-input-wrapper{display:block}
.tf-woo .tnd-invoice-toggle label{display:flex;align-items:center;gap:10px;min-height:44px;font-weight:600;color:var(--ink-2)}
.tf-woo .tnd-invoice-toggle input{width:20px;height:20px;margin:0;accent-color:var(--brand)}
.tf-woo .tf-woo-fields .tnd-mst-lookup-btn{min-height:44px;border-radius:999px;background:var(--brand)}
.tf-woo .tf-woo-fields .tnd-mst-lookup-msg{font-size:13px}
.tf-woo .create-account,.tf-woo .woocommerce-account-fields{margin-top:12px}
.tf-woo .wc_payment_methods{margin:14px 0 0;padding:0;list-style:none;display:grid;gap:10px}
.tf-woo .wc_payment_method .pay{cursor:pointer}
.tf-woo .wc_payment_method .payment_box{display:block;margin-top:4px;padding:0;background:none;color:var(--ink-2);font-size:14px}
.tf-woo .wc_payment_method .payment_box::before{display:none}
.tf-woo .wc_payment_method .payment_box p{margin:0}
.tf-woo .woocommerce-checkout-review-order-table{margin:0;border:0}
.tf-woo .tf-woo-ship{width:100%;margin-top:12px;font-size:14px}
.tf-woo .tf-woo-ship th{text-align:left;font-weight:600;color:var(--ink-2);padding:6px 0}
.tf-woo .tf-woo-ship td{padding:6px 0}
.tf-woo .tf-woo-ship ul{margin:0;padding:0;list-style:none}
.tf-woo .tf-woo-thanks{display:grid;gap:18px}
.tf-woo .blockUI.blockOverlay{background:rgba(255,255,255,.6)!important}

.tf-woo .woocommerce-error,.tf-woo .woocommerce-message,.tf-woo .woocommerce-info,.tf-woo .woocommerce-notices-wrapper>*{display:block;margin:0 0 14px;padding:12px 16px;list-style:none;border:1px solid var(--line);border-radius:var(--r-sm);background:var(--sky);color:var(--ink);font-size:14.5px}
.tf-woo .woocommerce-error{background:#FEF3F2;border-color:#FECDCA;color:#B42318}
.tf-woo .woocommerce-error li{margin:0;list-style:none}
.tf-woo .woocommerce-notices-wrapper:empty{display:none}
.tf-woo .woocommerce-message .button,.tf-woo .woocommerce-info .button{float:right;color:var(--brand);text-decoration:underline}

.tf-woo .woocommerce-MyAccount-content{min-width:0}
.tf-woo .woocommerce-MyAccount-content .woocommerce-EditAccountForm,.tf-woo .woocommerce-MyAccount-content .woocommerce-order-details,.tf-woo .woocommerce-MyAccount-content .woocommerce-customer-details{padding:clamp(16px,2vw,24px);border:1px solid var(--line);border-radius:var(--r-lg);background:#fff}
.tf-woo .woocommerce-EditAccountForm{display:grid;gap:14px}
.tf-woo .woocommerce-EditAccountForm .form-row{display:grid;gap:6px;float:none;width:auto;margin:0}
.tf-woo .woocommerce-EditAccountForm fieldset{display:grid;gap:14px;margin:6px 0 0;padding:14px 0 0;border:0;border-top:1px solid var(--line)}
.tf-woo .woocommerce-EditAccountForm legend{padding:0;font-weight:700;color:var(--ink)}
.tf-woo .woocommerce-EditAccountForm .button{justify-self:start;min-height:48px;padding:0 24px;border-radius:999px;background:var(--brand);color:#fff;font-weight:650}
.tf-woo .woocommerce-table{width:100%;border-collapse:collapse;font-size:15px}
.tf-woo .woocommerce-table th,.tf-woo .woocommerce-table td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.tf-woo .woocommerce-order-details__title,.tf-woo .woocommerce-column__title{font-size:20px;margin-bottom:10px}
.tf-woo .woocommerce-customer-details{margin-top:16px}
.tf-woo .woocommerce-customer-details address{font-style:normal;color:var(--ink-2);border:0;padding:0}
.tf-woo .lost_reset_password{display:grid;gap:14px;max-width:520px}
.tf-woo .lost_reset_password .form-row{display:grid;gap:6px;float:none;width:auto;margin:0}
.tf-woo .lost_reset_password .button{min-height:48px;padding:0 24px;border-radius:999px;background:var(--brand);color:#fff;font-weight:650}
@media (max-width:639.98px){.tf-woo .tf-woo-fields{grid-template-columns:minmax(0,1fr)}}
.tf-woo .fopt,.tf-woo .crumbs li,.tf-woo .lmeta li{margin:0}
.tf-woo .ltool__sort{white-space:nowrap;margin:0}
.tf-woo .ltool__sort select{appearance:auto;-webkit-appearance:menulist;width:auto}
.tf-woo .sum h2{font-size:20px}
.tf-woo .steps-bar li{margin:0}
.tf-woo #place_order{display:flex;align-items:center;justify-content:center;width:100%;min-height:52px;margin-top:14px;border:0;border-radius:999px;background:var(--brand);color:#fff;font-size:16px;font-weight:700;text-transform:none;letter-spacing:0;box-shadow:var(--shadow-md)}
.tf-woo .tf-woo-ship th{padding-right:12px}
.tf-woo .tf-woo-fields .tnd-mst-lookup-btn{width:auto;justify-self:start;padding:0 18px;color:#fff;font-size:14px;font-weight:650}
.tf-woo .acc>.woocommerce-MyAccount-content,.tf-woo .acc>.anav{width:auto;max-width:none;flex:none;float:none;margin:0}
.tf-woo .pw{display:block}
.tf-woo .lbox .chk{font-weight:500}
.tf-woo .tf-woo-split{margin-top:28px}
.tf-woo .tf-woo-p24{font-size:24px}
.tf-woo .tf-woo-ticks{margin-top:14px;font-size:14px}
.tf-woo .pdp .qty input{min-height:0;padding:0;border:0;box-shadow:none}
.tf-woo .pdp__gallery .woocommerce-product-gallery__image{position:relative}
.tf-woo .pdp__thumbs{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.tf-woo .pdp__thumbs button{width:64px;height:64px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#fff}
.tf-woo .pdp__thumbs button[aria-pressed="true"]{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand)}
.tf-woo .pdp__thumbs img{width:100%;height:100%;object-fit:contain}
.tf-woo .vopt__row button{text-align:left;background:#fff;text-transform:none}
.tf-woo .vopt select[hidden]{display:none}
.tf-woo .single_add_to_cart_button.disabled,.tf-woo .single_add_to_cart_button.wc-variation-selection-needed{opacity:.6}
.tf-woo .prose img{height:auto;max-width:100%}
.tf-woo .prose table{width:100%;border-collapse:collapse}
.tf-woo .prose table th,.tf-woo .prose table td{padding:10px;border:1px solid var(--line);text-align:left}
.tf-woo .crumbs li:last-child span{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden}
.tf-woo-page.single-product .mbar{display:none}
.tf-woo .woocommerce-order-details h2,.tf-woo .woocommerce-customer-details h2,.tf-woo .woocommerce-order-downloads h2{font-size:20px;margin-bottom:10px}
.tf-woo .tnd-spec-wrap{overflow-x:auto;margin:14px 0;border:1px solid var(--line);border-radius:var(--r-md)}
.tf-woo table.tnd-spec{width:100%;margin:0;border:0;border-collapse:collapse;font-size:15px}
.tf-woo table.tnd-spec th,.tf-woo table.tnd-spec td{padding:10px 14px;border:0;border-bottom:1px solid var(--line-2);text-align:left;vertical-align:top}
.tf-woo table.tnd-spec tr:last-child th,.tf-woo table.tnd-spec tr:last-child td{border-bottom:0}
.tf-woo table.tnd-spec th{width:34%;font-weight:650;color:var(--ink);background:var(--soft)}
.tf-woo form.checkout>.woocommerce-NoticeGroup{grid-column:1/-1;margin-bottom:4px}
.tf-woo .woocommerce-account-fields .create-account{margin-top:8px}
/* Wishlist and compare: WoodMart prints these and handles the clicks, the demo layout has no styles for them. */
.tf-woo .pcard{position:relative}
.tf-woo .tf-acts--icons{position:absolute;z-index:2;top:10px;right:10px;display:grid;gap:6px}
.tf-woo .tf-acts--row{display:flex;flex-wrap:wrap;gap:4px 18px;margin-top:10px}
.tf-woo .tf-act a{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 5.6a5.5 5.5 0 0 0-7.8 0L12 6.7l-1-1.1a5.5 5.5 0 0 0-7.8 7.8l1 1.1L12 22l7.8-7.5 1-1.1a5.5 5.5 0 0 0 0-7.8z'/%3E%3C/svg%3E");display:inline-flex;align-items:center;gap:8px;min-height:44px;color:var(--ink-2);font-size:14.5px;font-weight:600;text-decoration:none;cursor:pointer}
.tf-woo .tf-act--cmp a{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3l4 4-4 4M20 7H6M8 21l-4-4 4-4M4 17h14'/%3E%3C/svg%3E")}
.tf-woo .tf-act a::before{content:"";flex:none;width:20px;height:20px;background:currentColor;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.tf-woo .tf-act a:hover,.tf-woo .tf-act a.added{color:var(--brand)}
.tf-woo .tf-act a.loading{opacity:.5;pointer-events:none}
.tf-woo .tf-act .wd-action-icon{display:none}
.tf-woo .tf-acts--icons .tf-act a{justify-content:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:#fff}
.tf-woo .tf-acts--icons .wd-action-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.tf-woo .tf-woo-invoice dl{display:grid;grid-template-columns:minmax(120px,max-content) 1fr;gap:6px 16px;margin-top:10px}
.tf-woo .tf-woo-invoice dt{color:var(--ink-2)}
.tf-woo .tf-woo-invoice dd{margin:0;overflow-wrap:anywhere}
/* Promo clip, opened on request */
.tf-woo .tf-pv-open{position:absolute;left:12px;bottom:12px;z-index:2;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:#fff;box-shadow:0 4px 14px rgba(10,20,60,.12);font-size:14px;font-weight:650;color:var(--ink);text-transform:none;cursor:pointer}
.tf-woo .tf-pv-open::before{content:"";width:0;height:0;border-block:6px solid transparent;border-left:10px solid var(--brand)}
.tf-pv-dialog{width:min(92vw,640px);max-height:92vh;padding:0;overflow:hidden;border:0;border-radius:18px;background:#0b1236}
.tf-pv-dialog::backdrop{background:rgba(6,10,30,.72)}
.tf-pv-dialog video{display:block;width:100%;height:auto;max-height:92vh;aspect-ratio:1/1;object-fit:contain}
.tf-pv-close{position:absolute;top:10px;right:10px;z-index:1;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:rgba(255,255,255,.92);color:#0b1236;font-size:24px;line-height:1;cursor:pointer}
.tf-woo .tf-woo-compare-link{margin:12px 0 0;font-size:14px}
.tf-woo .tf-woo-compare-link a{color:var(--brand);text-decoration:underline}
@media (max-width:767.98px){.single-product .tf-ftr{padding-bottom:64px}}
/* Article cards on product pages and product lists */
.tf-home .tf-guides{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0;padding:0;list-style:none}
.tf-home .tf-guides a{display:flex;flex-direction:column;height:100%;overflow:hidden;border:1px solid var(--line);border-radius:var(--r-lg);background:#fff;color:var(--ink);font-weight:650;line-height:1.4}
.tf-home .tf-guides img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.tf-home .tf-guides span{padding:14px 16px}
@media (hover:hover) and (pointer:fine){.tf-home .tf-guides a:hover{border-color:var(--brand);color:var(--brand)}}
@media (max-width:767.98px){.tf-home .tf-guides{grid-template-columns:minmax(0,1fr)}}
/* product and catalogue motion: tnd-content-motion.js adds .tnd-motion on <html>; nothing is hidden without it */
.tnd-motion .tf-woo :is(.ptabs,.tf-woo-split .panel,.prose>h2,.prose>h3,.prose>table,.prose>figure,.prose>ul,.prose>ol,.psec__head,.tf-guides>li,.pgrid>li){transition:opacity .6s cubic-bezier(.2,.7,.2,1) var(--tnd-d,0ms),transform .7s cubic-bezier(.2,.7,.2,1) var(--tnd-d,0ms)}
.tnd-motion .tf-woo :is(.ptabs,.tf-woo-split .panel,.prose>h2,.prose>h3,.prose>table,.prose>figure,.prose>ul,.prose>ol,.psec__head,.tf-guides>li,.pgrid>li):not(.is-in){opacity:0;transform:translateY(22px)}
/* product hero: details rise in on load; the picture floats, leans toward the pointer and catches a passing sheen */
.tf-woo .pdp__meta>*{animation:tndwRise .7s cubic-bezier(.2,.7,.2,1) backwards}
.tf-woo .pdp__meta>:nth-child(2){animation-delay:.06s}.tf-woo .pdp__meta>:nth-child(3){animation-delay:.12s}.tf-woo .pdp__meta>:nth-child(4){animation-delay:.18s}.tf-woo .pdp__meta>:nth-child(5){animation-delay:.24s}.tf-woo .pdp__meta>:nth-child(6){animation-delay:.3s}.tf-woo .pdp__meta>:nth-child(n+7){animation-delay:.36s}
.tf-woo .pdp__gallery{position:relative;animation:tndwIn .8s cubic-bezier(.2,.7,.2,1) backwards,tndwGlow 6s ease-in-out .8s infinite}
.tnd-motion .tf-woo .pdp__gallery{transform:perspective(1100px) rotateY(var(--tx,0deg)) rotateX(var(--ty,0deg));transition:transform .35s ease-out}
.tf-woo .pdp__gallery .woocommerce-product-gallery__image:first-child img,.tf-woo .pdp__gallery>img{animation:tndwFloat 6.5s ease-in-out infinite}
.tf-woo .pdp__gallery::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;border-radius:inherit;background:linear-gradient(105deg,transparent 40%,rgba(255,255,255,.55) 50%,transparent 60%) no-repeat;background-size:250% 100%;background-position:150% 0;animation:tndwSheen 9s ease-in-out 1.5s infinite}
@keyframes tndwRise{from{opacity:0;transform:translateY(16px)}}
@keyframes tndwIn{from{opacity:0;transform:translateY(18px) scale(.98)}}
@keyframes tndwFloat{0%,100%{translate:0 0}50%{translate:0 -10px}}
@keyframes tndwGlow{0%,100%{box-shadow:0 24px 60px -40px rgba(20,50,182,.35)}50%{box-shadow:0 34px 80px -36px rgba(20,50,182,.55)}}
@keyframes tndwSheen{0%,72%{background-position:150% 0}100%{background-position:-60% 0}}
@media (prefers-reduced-motion:reduce){.tf-woo .pdp__meta>*,.tf-woo .pdp__gallery,.tf-woo .pdp__gallery img,.tf-woo .pdp__gallery::after{animation:none!important}}
/* product pages: the buy column runs longer than the picture, so on wide screens the picture stays in view while the column scrolls, and the gap before the tabs is halved */
@media (min-width:900px){.tf-woo .pdp>:first-child{position:sticky;top:104px}}
.tf-woo .phero{padding-bottom:24px}
.tf-woo .phero+.psec{padding-top:40px}

/* Hardware quote card (template-parts/tnd-woo-hardware-quote.php); kept here because mock/sp-phan-cung.css is regenerated */
.tf-woo .pdp__btns:has(>:only-child){grid-template-columns:minmax(0,1fr)}
.tf-woo .hwq{margin-top:16px;padding:18px 18px 16px;border:1px solid #C9D6FF;border-radius:var(--r-lg);background:linear-gradient(160deg,#F2F6FF 0%,#fff 70%);box-shadow:0 10px 30px -18px rgba(20,50,182,.45)}
.tf-woo .hwq__head{display:flex;gap:12px;align-items:flex-start}
.tf-woo .hwq__ic{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:12px;background:var(--brand);color:#fff}
.tf-woo .hwq__head b{display:block;font-size:17px;color:var(--ink);line-height:1.3}
.tf-woo .hwq__head div>span{display:block;margin-top:3px;font-size:14px;line-height:1.5;color:var(--ink-2)}
.tf-woo .hwq__list{display:grid;gap:6px;margin:12px 0 0;padding:0;list-style:none}
.tf-woo .hwq__list li{position:relative;padding-left:24px;font-size:14px;line-height:1.5;color:var(--ink-2)}
.tf-woo .hwq__list li::before{content:"";position:absolute;left:2px;top:5px;width:13px;height:8px;border-left:2px solid var(--brand);border-bottom:2px solid var(--brand);transform:rotate(-45deg)}
.tf-woo .hwq__btn{margin-top:14px;min-height:52px;font-size:16px;gap:8px}
.tf-woo .hwq__note{margin:10px 0 0;font-size:12.5px;line-height:1.5;color:var(--muted)}
.tf-woo .hwq__note a{color:var(--brand);text-decoration:underline;text-underline-offset:2px}
.tf-woo .hwq__ic .ic{position:static;width:20px;height:20px;margin:0;transform:none}
/* Product description already sits in a column beside the buy panel, so it fills that column instead of the 74ch landing measure. */
.tf-woo .tf-woo-split .prose{max-width:none}
/* "Thường mua kèm": the product and its WoodMart bundle companions, added to the cart together. */
.tf-woo .fbt{margin-top:18px;padding:16px 18px;border:1px solid var(--line);border-radius:16px;background:#fff}
.tf-woo .fbt__h{margin:0 0 10px;font-size:15px;font-weight:700;color:var(--ink)}
.tf-woo .fbt__list{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.tf-woo .fbt__list li{display:grid;grid-template-columns:48px minmax(0,1fr) auto;align-items:center;gap:12px}
.tf-woo .fbt__list li+li{position:relative;padding-top:10px;border-top:1px dashed var(--line)}
.tf-woo .fbt__list li+li::before{content:"+";position:absolute;top:-11px;left:16px;width:20px;height:20px;border-radius:50%;background:var(--brand);color:#fff;font:700 14px/20px system-ui,sans-serif;text-align:center}
.tf-woo .fbt__list img{width:48px;height:48px;object-fit:contain;border-radius:10px;background:var(--soft,#f3f6fb)}
.tf-woo .fbt__name{font-size:14px;line-height:1.4;color:var(--ink)}
.tf-woo .fbt__name a{color:inherit;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px}
.tf-woo .fbt__this{display:block;font-size:12px;color:var(--muted)}
.tf-woo .fbt__price{font-size:14px;white-space:nowrap}
.tf-woo .fbt__sum{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:12px 0;padding-top:12px;border-top:1px solid var(--line)}
.tf-woo .fbt__sum span{font-size:14px;color:var(--muted)}
.tf-woo .fbt__sum b{font-size:20px;color:var(--ink)}
.tf-woo .fbt .btn{width:100%}
