/* KhoRevit V8 – style WooCommerce native templates without overriding checkout logic. */
.mainlinks ul,.mainlinks .menu{display:contents}.mainlinks li{list-style:none}.mainlinks li a{display:inline-block}
.nav{gap:16px}.mainlinks{gap:15px}.nav-search{width:160px}.outline-btn{font-size:11px}
.khv8-account-link,.khv8-cart-link{color:#164f99;font-size:11px;font-weight:800;white-space:nowrap}
.khv8-account-link:hover,.khv8-cart-link:hover{color:#1677e5}
.khv8-woo-page{padding-top:35px;padding-bottom:76px;min-height:55vh}
.khv8-woo-page .woocommerce-breadcrumb,.woocommerce .woocommerce-breadcrumb{font-size:12px;color:#8092aa;margin-bottom:25px}
.khv8-woo-page h1,.khv8-woo-page .page-title{color:#103e7e;font-size:clamp(25px,3vw,35px);line-height:1.3;margin:0 0 21px}
.khv8-woo-page .woocommerce-result-count,.khv8-woo-page .woocommerce-ordering{color:#6a819d;font-size:12px;margin-bottom:20px}
.khv8-woo-page .woocommerce-ordering select{border:1px solid #d3e2f2;background:#fff;border-radius:9px;padding:9px 13px;color:#1a4a82;max-width:100%}
.woocommerce ul.products,.woocommerce-page ul.products{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px!important;list-style:none!important;padding:0!important;margin:0 0 30px!important;clear:both}
.woocommerce ul.products:before,.woocommerce ul.products:after{display:none!important}
.woocommerce ul.products li.product,.woocommerce-page ul.products li.product{float:none!important;width:auto!important;margin:0!important;clear:none!important;min-width:0;display:flex;flex-direction:column;background:#fff;border:1px solid #e2eaf5;border-radius:15px;overflow:hidden;box-shadow:0 4px 12px #0e41710a;transition:box-shadow .2s,transform .2s;text-align:center}
.woocommerce ul.products li.product:hover{transform:translateY(-3px);box-shadow:0 15px 30px #1443731a}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link{display:block;min-width:0}
.woocommerce ul.products li.product a img{width:100%!important;aspect-ratio:1/1;object-fit:contain;display:block;margin:0!important;padding:10px;background:#f8fbff}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:13px!important;line-height:1.65;min-height:66px;max-height:75px;overflow:hidden;color:#144a89;padding:12px 13px 0!important;margin:0!important}
.woocommerce ul.products li.product .price{display:block;font-size:16px!important;color:#ea5c1a!important;font-weight:800!important;margin:9px 0 14px!important;line-height:1.5}
.woocommerce ul.products li.product .price del{font-size:11px;color:#8190a3;font-weight:400}
.khv8-free,.woocommerce ul.products li.product .price .khv8-free{font-size:17px;font-weight:800;color:#05a65b!important;text-transform:uppercase}
.woocommerce ul.products li.product .button{align-self:center;text-align:center;max-width:calc(100% - 24px);margin:auto 12px 16px!important;padding:11px 14px!important;background:#1768d1!important;color:#fff!important;border:0;border-radius:9px!important;line-height:1.4;font-size:11px!important;white-space:normal}
.woocommerce ul.products li.product .added_to_cart{margin:0 0 13px;color:#1563c8;font-size:11px}
.woocommerce span.onsale{background:#f07728;color:#fff;min-height:auto;min-width:auto;line-height:1.5;border-radius:7px;padding:6px 12px;font-size:11px;top:10px;left:10px}
.woocommerce nav.woocommerce-pagination ul{border:0;display:flex;justify-content:center;gap:8px;flex-wrap:wrap}
.woocommerce nav.woocommerce-pagination ul li{border:0}
.woocommerce nav.woocommerce-pagination ul li a,.woocommerce nav.woocommerce-pagination ul li span{min-width:36px;padding:10px;border-radius:8px;background:#f0f6ff;color:#175bb0}
.woocommerce nav.woocommerce-pagination ul li span.current{background:#176bd3;color:#fff}
.khv8-woo-page .woocommerce div.product{margin-top:0}
.woocommerce div.product div.images img{background:#f8fbff;object-fit:contain;border:1px solid #e0e9f5;border-radius:14px;padding:11px}
.woocommerce div.product div.images .flex-control-thumbs li img{border-radius:9px;margin:6px 0}
.woocommerce div.product .product_title{font-size:clamp(24px,3vw,34px);line-height:1.3;color:#0d407f}
.woocommerce div.product p.price,.woocommerce div.product span.price{font-size:24px;color:#e96221;font-weight:800}
.woocommerce div.product .woocommerce-product-details__short-description{color:#586f8a;line-height:1.8}
.woocommerce div.product form.cart{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:18px 0}
.woocommerce div.product form.cart .quantity{margin:0!important}
.woocommerce .quantity .qty{min-height:44px;border:1px solid #d6e3f1;border-radius:8px;padding:7px;text-align:center}
.woocommerce button.button.alt,.woocommerce a.button.alt,.woocommerce button.button,.woocommerce a.button,.woocommerce input.button,.woocommerce #respond input#submit{background:#1769d2!important;color:#fff!important;border-radius:9px!important;padding:13px 18px!important;font-weight:800;font-size:12px;line-height:1.3}
.woocommerce .product_meta{font-size:12px;color:#6d829d;line-height:2}.woocommerce .product_meta a{color:#1265c8}
.woocommerce div.product .woocommerce-tabs{padding-top:25px}.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0 7px}
.woocommerce div.product .woocommerce-tabs ul.tabs li{border-color:#e1eaf4;border-radius:8px 8px 0 0;background:#f5f8ff}
.woocommerce div.product .woocommerce-tabs .panel{padding:20px 4px;line-height:1.9;color:#4d6480}
.woocommerce div.product .related>h2,.khv8-extra h2{font-size:23px;color:#0c4187;margin-bottom:19px}
.khv8-specs{border:1px solid #e0eafa;background:#f6faff;border-radius:13px;margin:17px 0;padding:8px 17px}
.khv8-specs div{display:flex;justify-content:space-between;gap:17px;padding:10px 0;border-bottom:1px solid #e1eafa;color:#6683a5;font-size:12px}
.khv8-specs div:last-child{border:0}.khv8-specs strong{color:#17467f;text-align:right;overflow-wrap:anywhere}
.khv8-drive-block{margin:14px 0 22px}.khv8-drive-button{display:flex;align-items:center;justify-content:center;text-align:center;color:white!important;background:linear-gradient(100deg,#ed8505,#ffa412);border-radius:11px;padding:16px 19px;min-height:54px;font-size:15px;font-weight:800}
.khv8-drive-block small{display:block;margin-top:8px;color:#7188a0;line-height:1.7;font-size:11px;text-align:center}
.khv8-payment{padding:20px;background:#f5f9ff;border:1px solid #dce8f8;border-radius:14px;margin:20px 0 25px}
.khv8-payment h3{font-size:20px;color:#104885;margin:0 0 12px}.khv8-payment p{font-size:12px;line-height:1.9;color:#526e8b}
.khv8-bank-note{background:#fff;border-left:4px solid #2072d5;border-radius:7px;padding:13px;line-height:1.8;white-space:normal;font-size:12px}
.khv8-qrs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:16px 0}
.khv8-qr{border:1px solid #dce8f8;border-radius:11px;padding:12px;background:#fff;text-align:center;min-width:0}.khv8-qr strong{display:block;color:#174b89;margin-bottom:10px}.khv8-qr img{display:block;max-height:230px;width:100%;height:auto;object-fit:contain;margin:auto}
.khv8-contact{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}.khv8-contact a{display:inline-flex;background:#e7f1ff;color:#125ab5;padding:12px 14px;border-radius:9px;font-size:12px;font-weight:700}.khv8-contact .khv8-zalo{background:#156bd7;color:#fff}
.khv8-transfer-form{margin-top:15px}.khv8-transfer-form h4{font-size:15px;color:#155093}.khv8-extra{padding:18px 0;margin:24px 0;clear:both}.khv8-extra img{max-width:min(100%,600px);height:auto;border-radius:12px}
.khv8-extra a{color:#1766c9;font-weight:800}
.khv8-admin-note,.khv8-empty{padding:24px;background:#f1f7ff;border-radius:13px;color:#214e81;border:1px solid #dfebfb;font-size:13px}
.khv8-admin-note a{color:#1666c7;text-decoration:underline}
.khv-content{padding-top:40px;padding-bottom:70px;min-height:53vh}.khv-content h1{font-size:30px;color:#124783}
.woocommerce .woocommerce-message,.woocommerce .woocommerce-info,.woocommerce .woocommerce-error{border-top-color:#206bce;border-radius:8px;background:#f4f9ff;color:#164c8a}
.woocommerce table.shop_table{border-color:#dfe8f5;border-radius:11px}.woocommerce table.shop_table th,.woocommerce table.shop_table td{padding:13px}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select{border:1px solid #d5e1f0;border-radius:8px;padding:12px;background:white;color:#193b6a}
.woocommerce .woocommerce-checkout #payment{background:#f2f7fd;border-radius:12px}.woocommerce .woocommerce-checkout #payment div.payment_box{background:white;color:#254f80}
.woocommerce-account .woocommerce-MyAccount-navigation ul{padding-left:0;list-style:none}.woocommerce-account .woocommerce-MyAccount-navigation li{padding:8px;border-bottom:1px solid #e1eaf4}
.woocommerce-account .woocommerce-MyAccount-navigation a{color:#165cba;font-weight:700}
@media(max-width:1100px){.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}.nav-search{display:none}.mainlinks{gap:10px}.nav{gap:12px}}
@media(max-width:820px){.woocommerce ul.products,.woocommerce-page ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}.khv8-account-link,.khv8-cart-link{font-size:10px}.mainlinks ul,.mainlinks .menu{display:block}}
@media(max-width:540px){.khv8-woo-page{padding-top:24px;padding-bottom:45px}.woocommerce ul.products,.woocommerce-page ul.products{gap:11px!important}.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:11px!important;min-height:69px;padding:10px 8px 0!important}.woocommerce ul.products li.product .button{font-size:10px!important;padding:9px!important}.woocommerce ul.products li.product .price{font-size:14px!important}.woocommerce ul.products li.product a img{padding:6px}.khv8-qrs{grid-template-columns:1fr}.khv8-payment{padding:14px}.khv8-account-link{display:none}.khv8-cart-link{font-size:0}.khv8-cart-link:before{content:'🛒';font-size:22px}.khv8-specs div{font-size:11px}.woocommerce div.product div.images,.woocommerce div.product div.summary{float:none!important;width:100%!important}}
