/* Tiến Phạm Theme — nhẹ, mobile trước */
:root{--tp-c:#e11d48;--tp-c1:#e11d48;--tp-c2:#111827;--tp-c3:#f59e0b;--tp-r:10px;--tp-btn-r:8px;--tp-w:1180px;--tp-text:#111827;--tp-mut:#6b7280;--tp-line:#eceef1;--tp-hh:60px}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:16px;line-height:1.6;color:var(--tp-text);background:#fff;-webkit-font-smoothing:antialiased}
img,video,iframe,svg{max-width:100%}
img{height:auto;display:block}
a{color:var(--tp-c);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4,h5,h6{margin:0 0 .6em;line-height:1.25;font-weight:700}
p{margin:0 0 1em}
button,input,select,textarea{font:inherit}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.screen-reader-text:focus{clip:auto;width:auto;height:auto;background:#fff;padding:8px 12px;z-index:100000;left:8px;top:8px}
.alignleft{float:left;margin:0 1em 1em 0}.alignright{float:right;margin:0 0 1em 1em}.aligncenter{display:block;margin:0 auto 1em}
.wp-caption,.gallery-caption{max-width:100%;font-size:13px;color:var(--tp-mut)}
.tp-wrap{width:100%;max-width:var(--tp-w);margin:0 auto;padding:0 16px}
.tp-main{padding-top:24px;padding-bottom:40px}
.tp-nopad{padding-left:0;padding-right:0}
.tp-narrow{max-width:820px}
.tp-title{font-size:clamp(24px,4vw,34px)}
.tp-meta{color:var(--tp-mut);font-size:13px;margin-bottom:12px}
.tp-hero{margin:0 0 20px}.tp-hero img{border-radius:10px;width:100%}
.tp-content :where(img){border-radius:8px}
.tp-btn{display:inline-block;padding:11px 22px;border:0;border-radius:8px;background:var(--tp-c);color:#fff;font-weight:700;cursor:pointer;text-decoration:none}
.tp-btn:hover{opacity:.92;text-decoration:none}

/* ---------- header (Header Builder) ---------- */
.tp-tb{display:flex;align-items:center;justify-content:center;min-height:var(--tp-tbh,34px);background:var(--tp-tbbg);color:var(--tp-tbtx);font-size:13px;text-align:center;padding:0;line-height:1.4}
.tp-tb .tp-wrap{width:100%}
.tp-tb a{color:inherit;text-decoration:underline}
.tp-header{background:var(--tp-hbg);color:var(--tp-htxt);border-bottom:1px solid var(--tp-line);z-index:1000}
.tp-sticky{position:sticky;top:0}
body.admin-bar .tp-sticky{top:32px}
@media (max-width:782px){body.admin-bar .tp-sticky{top:46px}}
.tp-h-pc{display:none}
@media (min-width:992px){.tp-h-pc{display:block}.tp-h-mb{display:none}}
.tp-hr{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;min-height:var(--tp-hhm)}
.tp-hr-bottom{min-height:44px;border-top:1px solid var(--tp-line)}
.tp-h-pc .tp-hr{grid-template-columns:auto minmax(0,1fr) auto;gap:24px;min-height:var(--tp-hh)}
.tp-h-pc .tp-hr-2{display:flex;gap:40px}
.tp-hf{display:flex;align-items:center;min-width:0}
.tp-hf-1{flex:1;gap:36px}
.tp-hf-1 .tp-hsb{flex:1;max-width:none;min-width:0}
.tp-hf-2{flex:0 0 auto;gap:var(--tp-gap,6px)}
.tp-hz{display:flex;align-items:center;gap:var(--tp-gap-m,2px);min-width:0}
.tp-hz-l{justify-content:flex-start}
.tp-hz-c{justify-content:center}
.tp-hz-r{justify-content:flex-end}
.tp-logo{display:flex;align-items:center;color:var(--tp-htxt);font-size:20px;text-decoration:none}
.tp-logo-img{height:var(--tp-logo-hm);width:auto;max-width:200px;object-fit:contain}
.tp-h-pc .tp-logo-img{height:var(--tp-logo-h)}
.tp-hsb{flex:1;min-width:180px;max-width:520px}
.tp-hsb .tp-sf{flex:none;width:100%}
.tp-hhtml{font-size:14px}
.tp-hbtn{white-space:nowrap}
.tp-phone{display:inline-flex;align-items:center;gap:8px;color:var(--tp-htxt);text-decoration:none;white-space:nowrap}
.tp-phone:hover{text-decoration:none;color:var(--tp-c1)}
.tp-phone-t{display:flex;flex-direction:column;line-height:1.2}
.tp-phone small{font-size:11px;color:var(--tp-mut)}
.tp-phone b{font-size:15px}
.tp-h-mb .tp-phone-t{display:none}
button.tp-ib,a.tp-ib{position:relative;display:inline-flex;align-items:center;justify-content:center;width:calc(var(--tp-ico,22px) + 18px);height:calc(var(--tp-ico,22px) + 18px);padding:0;margin:0;border:0;border-radius:var(--tp-btn-r,8px);background:transparent;color:var(--tp-htxt);cursor:pointer;text-decoration:none}
button.tp-ib:hover,a.tp-ib:hover{background:rgba(127,127,127,.12);text-decoration:none}
.tp-ib svg,.tp-phone svg{width:var(--tp-ico,22px);height:var(--tp-ico,22px)}
.tp-catbtn{display:inline-flex;align-items:center;gap:10px;padding:0 8px;height:calc(var(--tp-ico,22px) + 18px);border:0;border-radius:var(--tp-btn-r,8px);background:transparent;color:var(--tp-htxt);cursor:pointer;font-family:inherit;text-align:left}
.tp-catbtn:hover{background:rgba(127,127,127,.1)}
.tp-catbtn-i{display:flex}
.tp-catbtn-i svg{width:calc(var(--tp-ico,22px)*1.45);height:var(--tp-ico,22px)}
.tp-catbtn-t{display:flex;flex-direction:column;justify-content:center;line-height:1.15;white-space:nowrap}
.tp-cl1{font-size:11px;font-weight:400;opacity:.8}
.tp-cl2{font-size:13px;font-weight:600;display:flex;align-items:center;gap:5px}
.tp-caret{flex:none;width:9px;height:6px}
.tp-h-mb .tp-catbtn-t{display:none}
.tp-hi{display:contents}
.tp-tpoint{display:inline-flex;align-items:center;gap:6px;padding:0 6px;height:calc(var(--tp-ico,22px) + 18px);border-radius:var(--tp-btn-r,8px);color:var(--tp-tpn,#f2b01e);text-decoration:none;white-space:nowrap}
.tp-tpoint:hover{background:rgba(127,127,127,.1);text-decoration:none}
.tp-tpoint-n{font-size:var(--tp-ico,22px);font-weight:700;line-height:1;color:var(--tp-tpn,#f2b01e)}
.tp-tpoint-i{display:flex;color:var(--tp-tpi,#f2b01e)}
.tp-tpoint-i svg,.tp-tpoint-i img{width:var(--tp-ico,22px);height:var(--tp-ico,22px);object-fit:contain}
.tp-cc{position:absolute;top:0;right:-2px;min-width:var(--tp-bdg,17px);height:var(--tp-bdg,17px);padding:0 4px;border-radius:calc(var(--tp-bdg,17px)/2 + 1px);background:var(--tp-bbg,var(--tp-c));color:var(--tp-btx,#fff);font-size:calc(var(--tp-bdg,17px)*.62);font-weight:700;line-height:var(--tp-bdg,17px);text-align:center;box-sizing:border-box}
.tp-h-mb button.tp-ib,.tp-h-mb a.tp-ib{width:calc(var(--tp-ico,22px) + 12px);height:calc(var(--tp-ico,22px) + 12px)}
.tp-h-mb .tp-tpoint{padding:0 4px;gap:4px;height:calc(var(--tp-ico,22px) + 12px)}
.tp-cc.is-zero{display:none}
.tp-menu{list-style:none;margin:0;padding:0;display:flex;gap:4px;align-items:center}
.tp-menu a{display:block;padding:10px 12px;color:var(--tp-htxt,var(--tp-text));font-weight:600;font-size:var(--tp-menu-fs,15px);text-decoration:none;border-radius:8px}
.tp-menu a:hover,.tp-menu .current-menu-item>a{color:var(--tp-c);background:#f8fafc}
.tp-menu li{position:relative}
.tp-menu .sub-menu{list-style:none;margin:0;padding:6px;position:absolute;left:0;top:100%;min-width:200px;background:#fff;border:1px solid var(--tp-line);border-radius:10px;box-shadow:0 10px 30px rgba(16,24,40,.12);opacity:0;visibility:hidden;transform:translateY(6px);transition:.15s;z-index:20}
.tp-menu li:hover>.sub-menu,.tp-menu li:focus-within>.sub-menu{opacity:1;visibility:visible;transform:none}
.tp-menu .sub-menu .sub-menu{left:100%;top:0}

/* ---------- ngăn kéo / overlay ---------- */
.tp-ov{position:fixed;inset:0;z-index:2147483000;visibility:hidden}
.tp-ov.is-open{visibility:visible}
.tp-ov-bg{position:absolute;inset:0;background:rgba(17,24,39,.5);opacity:0;transition:opacity .2s}
.tp-ov.is-open .tp-ov-bg{opacity:1}
.tp-panel{position:absolute;top:0;bottom:0;width:min(92vw,400px);background:#fff;display:flex;flex-direction:column;transition:transform .25s ease;overflow:auto}
.tp-ov-l .tp-panel{left:0;transform:translateX(-100%)}
.tp-ov-r .tp-panel{right:0;transform:translateX(100%)}
.tp-ov.is-open .tp-panel{transform:none}
.tp-ph{display:flex;align-items:center;justify-content:space-between;padding:12px 12px 12px 16px;border-bottom:1px solid var(--tp-line);font-size:17px}
.tp-mnav{padding:8px}
.tp-menu-m{flex-direction:column;align-items:stretch;gap:0}
.tp-menu-m a{padding:13px 12px;border-bottom:1px solid #f3f4f6;border-radius:0}
.tp-menu-m .sub-menu{position:static;opacity:1;visibility:visible;transform:none;box-shadow:none;border:0;padding:0 0 0 14px;min-width:0;display:block}
.tp-pl{margin-top:auto;padding:12px 16px;border-top:1px solid var(--tp-line);display:grid;gap:4px}
.tp-pl a{display:flex;align-items:center;gap:10px;padding:10px 0;color:var(--tp-text);font-weight:600;text-decoration:none}
.tp-ov-t .tp-panel-s{top:0;bottom:auto;left:0;right:0;width:auto;flex-direction:row;align-items:center;gap:8px;padding:12px 16px;transform:translateY(-100%)}
.tp-ov-t.is-open .tp-panel-s{transform:none}
html.tp-lock,html.tp-lock body{overflow:hidden}

/* ---------- ô tìm kiếm (dùng chung: header + khung tìm kiếm trên mobile) ---------- */
.tp-sf{position:relative;flex:1;display:block}
.tp-sf input[type=search]{width:100%;height:var(--tp-sb-h,46px);padding:0 52px 0 16px;border:0;border-radius:var(--tp-r);background:var(--tp-sb-bg,#efefef);font-size:14px;color:var(--tp-text);-webkit-appearance:none;appearance:none}
.tp-sf input[type=search]::placeholder{color:#7b8190;opacity:1}
.tp-sf input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none}
.tp-sf input[type=search]:focus{outline:0;background:#fff;box-shadow:0 0 0 2px color-mix(in srgb,var(--tp-c1) 35%,transparent)}
.tp-sf button{position:absolute;top:0;right:0;width:46px;height:var(--tp-sb-h,46px);padding:0;border:0;border-radius:0 var(--tp-r) var(--tp-r) 0;background:transparent;color:#6b7280;display:flex;align-items:center;justify-content:center;cursor:pointer}
.tp-sf button svg{width:20px;height:20px}
@media (max-width:767px){.tp-sf input[type=search]{font-size:16px}}

/* ---------- mini cart ---------- */
.tp-panel .widget_shopping_cart_content{display:flex;flex-direction:column;flex:1;min-height:0}
.tp-mc-list{flex:1;min-height:0;overflow-x:hidden;overflow-y:auto;padding:4px 16px}
.tp-panel .tp-mc{list-style:none;margin:0;padding:0}
.tp-panel .tp-mci::before,.tp-panel .tp-mci::after{content:none!important;display:none!important}
.tp-panel .tp-mci{display:grid;grid-template-columns:56px minmax(0,1fr) auto 22px;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #f0f1f3}
.tp-panel .tp-mci-img{display:block;float:none;width:56px;height:56px;border-radius:8px;overflow:hidden;background:#f3f4f6}
.tp-panel .tp-mci-img img{float:none;margin:0;width:56px;height:56px;max-width:none;object-fit:cover;display:block}
.tp-mci-b{min-width:0}
.tp-panel .tp-mci>*{min-width:0}
.tp-panel .tp-mci-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;word-break:break-word;font-size:13px;line-height:1.35;font-weight:600;color:var(--tp-text);text-decoration:none}
.tp-mci-name:hover{color:var(--tp-c1);text-decoration:none}
.tp-mci-b dl.variation{margin:2px 0 0;font-size:11px;color:var(--tp-mut)}
.tp-mci-b dl.variation dt,.tp-mci-b dl.variation dd,.tp-mci-b dl.variation p{display:inline;margin:0}
.tp-mci-q{display:inline-block;margin-top:3px;font-size:12px;font-weight:700;color:var(--tp-mut)}
.tp-mci-p{font-size:13px;font-weight:700;color:var(--tp-text);white-space:nowrap;text-align:right}
.tp-panel .tp-mci .tp-mci-x{position:static;float:none;margin:0;padding:0;font-weight:400;width:22px;height:22px;border-radius:50%;background:#f3f4f6;color:#6b7280!important;display:flex;align-items:center;justify-content:center;font-size:16px;line-height:1;text-decoration:none}
.tp-panel .tp-mci .tp-mci-x:hover{background:#fee2e2;color:#dc2626!important}
.tp-mc-foot{padding:12px 16px calc(16px + env(safe-area-inset-bottom));border-top:1px solid var(--tp-line);background:#fff}
.tp-mc-foot .tpco-fs{margin:0 0 12px;padding:10px 12px;border-radius:var(--tp-r);background:#f8fafc;border:1px solid #eef1f5}
.tp-mc-foot .tpco-fs[hidden]{display:none}
.tp-mc-foot .tpco-fs-msg{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;margin-bottom:11px;color:#374151}
.tp-mc-foot .tpco-fs-bar{position:relative;height:8px;border-radius:99px;background:#e5e7eb;margin:0 13px 3px 0}
.tp-mc-foot .tpco-fs-bar i{display:block;position:absolute;left:0;top:0;bottom:0;border-radius:inherit;background:linear-gradient(90deg,var(--tp-c1),color-mix(in srgb,var(--tp-c1) 60%,#fff));transition:width .5s ease}
.tp-mc-foot .tpco-fs-ico{position:absolute;top:50%;width:26px;height:26px;margin:0;border-radius:50%;transform:translate(-50%,-50%);background:#fff;color:var(--tp-c1);border:2px solid var(--tp-c1);display:flex;align-items:center;justify-content:center;transition:left .5s ease;box-shadow:0 2px 6px rgba(0,0,0,.12)}
.tp-mc-foot .tpco-fs.is-full .tpco-fs-msg{color:#16a34a}
.tp-mc-foot .tpco-fs.is-full .tpco-fs-bar i{background:#16a34a}
.tp-mc-foot .tpco-fs.is-full .tpco-fs-ico{color:#fff;background:#16a34a;border-color:#16a34a}
.tp-mc-total{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px;font-size:15px}
.tp-mc-total b{font-size:17px}
.tp-mc-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tp-mcb{display:flex;align-items:center;justify-content:center;min-height:46px;padding:0 12px;border-radius:var(--tp-btn-r);font-size:var(--tp-btn-fs);font-weight:var(--tp-btn-fw);text-align:center;text-decoration:none}
.tp-mcb:hover{text-decoration:none}
.tp-mcb-1{background:var(--tp-btn-bg);color:var(--tp-btn-txt)}
.tp-mcb-1:hover{background:color-mix(in srgb,var(--tp-btn-bg) 88%,#000);color:var(--tp-btn-txt)}
.tp-mcb-2{background:#f3f4f6;color:var(--tp-text)}
.tp-mcb-2:hover{background:#e5e7eb;color:var(--tp-text)}
.tp-mc-empty{padding:40px 16px;text-align:center;color:var(--tp-mut)}
.tp-mc-empty .tp-mcb{margin-top:8px}

/* ---------- thanh menu đáy (điện thoại) ---------- */
.tp-bn{display:none}
@media (max-width:768px){
	.tp-bn{position:fixed;left:0;right:0;bottom:0;z-index:1500;display:grid;grid-template-columns:repeat(5,1fr);padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--tp-line);box-shadow:0 -4px 16px rgba(16,24,40,.06)}
	.tp-bn a{display:flex;flex-direction:column;align-items:center;gap:2px;color:#4b5563;font-size:10px;font-weight:500;line-height:12px;text-decoration:none}
	.tp-bn a:hover{color:var(--tp-c);text-decoration:none}
	.tp-bn-i{position:relative;display:flex}
	.tp-bn .tp-i{width:21px;height:21px}
	.tp-bn .tp-cc{top:-4px;right:-9px}
	body.tp-has-bn{padding-bottom:calc(58px + env(safe-area-inset-bottom))}
}

/* ---------- chân trang ---------- */
.tp-footer{margin-top:40px;background:#0b1020;color:#cbd5e1;font-size:14px;content-visibility:auto;contain-intrinsic-size:auto 320px}
.tp-footer a{color:#e2e8f0}
.tp-fcols{display:grid;grid-template-columns:1fr;gap:24px;padding-top:36px;padding-bottom:12px}
@media (min-width:768px){.tp-fcols{grid-template-columns:repeat(3,1fr)}}
.tp-wt{color:#fff;font-size:15px;text-transform:uppercase;letter-spacing:.03em}
.tp-widget ul{list-style:none;margin:0;padding:0}
.tp-widget li{padding:4px 0}
.tp-fbar{border-top:1px solid rgba(255,255,255,.1);margin-top:12px}
.tp-fbar-in{display:flex;flex-wrap:wrap;gap:8px 20px;justify-content:space-between;padding-top:14px;padding-bottom:14px}
.tp-fmenu{list-style:none;margin:0;padding:0;display:flex;gap:16px;flex-wrap:wrap}

/* ---------- bài viết ---------- */
.tp-posts{display:grid;grid-template-columns:1fr;gap:20px;margin:20px 0}
@media (min-width:640px){.tp-posts{grid-template-columns:repeat(2,1fr)}}
@media (min-width:992px){.tp-posts{grid-template-columns:repeat(3,1fr)}}
.tp-card{border:1px solid var(--tp-line);border-radius:12px;overflow:hidden;background:#fff}
.tp-thumb img{width:100%;aspect-ratio:16/10;object-fit:cover}
.tp-card-b{padding:14px 16px}
.tp-card-t{font-size:18px;margin-bottom:6px}
.tp-card-t a{color:var(--tp-text)}
.tp-ex{color:#4b5563;font-size:14px}
.navigation.pagination{margin:24px 0;text-align:center}
.page-numbers{display:inline-block;min-width:36px;padding:7px 10px;margin:0 2px;border:1px solid var(--tp-line);border-radius:8px;color:var(--tp-text);text-decoration:none}
.page-numbers.current{background:var(--tp-c);border-color:var(--tp-c);color:#fff}
.tp-comments{margin-top:32px}
.tp-cl{list-style:none;padding:0}
.tp-cl li{padding:12px 0;border-bottom:1px solid #f0f1f3}
.tp-comments input[type=text],.tp-comments input[type=email],.tp-comments input[type=url],.tp-comments textarea{width:100%;padding:10px 12px;border:1px solid #d9dde3;border-radius:8px}
.tp-comments input[type=submit]{padding:11px 22px;border:0;border-radius:8px;background:var(--tp-c);color:#fff;font-weight:700;cursor:pointer}

/* ---------- WooCommerce cơ bản (khi chưa dùng template Elementor) ---------- */
.tp-woo .woocommerce-breadcrumb{color:var(--tp-mut);font-size:13px;margin-bottom:12px}
.tp-woo ul.products{list-style:none;margin:0 0 24px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (min-width:768px){.tp-woo ul.products{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}}
@media (min-width:1024px){.tp-woo ul.products{grid-template-columns:repeat(4,minmax(0,1fr))}}
.tp-woo ul.products li.product{width:auto!important;float:none!important;margin:0!important;padding:10px;border:1px solid var(--tp-line);border-radius:12px;background:#fff;display:flex;flex-direction:column}
.tp-woo ul.products li.product img{border-radius:8px;margin:0 0 8px;width:100%;aspect-ratio:1;object-fit:cover}
.tp-woo .woocommerce-loop-product__title{font-size:14px;font-weight:600;line-height:1.35;margin:0 0 6px;padding:0}
.tp-woo .price{color:var(--tp-c);font-weight:800}
.tp-woo .price del{color:#9ca3af;font-weight:400;margin-right:6px}
.tp-woo .price ins{text-decoration:none}
.tp-woo ul.products li.product .button{margin-top:auto}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit,.single_add_to_cart_button{display:inline-block;padding:11px 20px;border:0;border-radius:8px;background:var(--tp-c);color:#fff;font-weight:700;text-align:center;text-decoration:none;cursor:pointer}
.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--tp-c);color:#fff;opacity:.92}
.woocommerce span.onsale{position:absolute;top:8px;left:8px;min-height:0;min-width:0;padding:3px 9px;border-radius:6px;background:var(--tp-c);color:#fff;font-size:12px;line-height:1.4}
.tp-woo div.product{display:grid;grid-template-columns:1fr;gap:24px}
@media (min-width:900px){.tp-woo div.product{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.tp-woo div.product .woocommerce-tabs,.tp-woo div.product .related,.tp-woo div.product .upsells{grid-column:1/-1}}
.tp-woo div.product .product_title{font-size:clamp(22px,4vw,30px)}
.tp-woo div.product p.price{font-size:24px}
.tp-woo .quantity input.qty{width:64px;height:44px;border:1px solid #d9dde3;border-radius:8px;text-align:center}
.tp-woo form.cart{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:16px}
.tp-woo table.variations td,.tp-woo table.variations th{display:block;padding:0;text-align:left}
.tp-woo table.variations select{width:100%;height:44px;border:1px solid #d9dde3;border-radius:8px;padding:0 10px}
.woocommerce-message,.woocommerce-info,.woocommerce-error{margin:0 0 16px;padding:12px 16px;border-radius:8px;list-style:none;background:#f8fafc;border:1px solid var(--tp-line)}
.woocommerce-error{background:#fef2f2;border-color:#fecaca;color:#b91c1c}
.woocommerce nav.woocommerce-pagination ul{border:0;display:flex;gap:4px;justify-content:center;padding:0;margin:0}
.woocommerce nav.woocommerce-pagination ul li{border:0;float:none}
.woocommerce-ordering select{height:40px;border:1px solid #d9dde3;border-radius:8px;padding:0 10px}
.woocommerce-result-count{color:var(--tp-mut);font-size:14px}
