/*
Theme Name: Dr Lacir
Description: Giao diện riêng cho drlacir.vn
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.1
Text Domain: drlacir
*/

:root {
  --nen: #f5fbfa;
  --trang: #ffffff;
  --bac-ha: #c9efe7;
  --bac-ha-nhat: #dff5f0;
  --vien: #a5cfc8;
  --xanh: #0b5a54;
  --xanh-dam: #0b4a45;
  --chu: #0e3b38;
  --tieu-de: Quicksand, "Be Vietnam Pro", Arial, sans-serif;
  --than: "Be Vietnam Pro", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--nen); color: var(--chu); font: 400 17px/1.6 var(--than); overflow-wrap: break-word; }
img, video, iframe { max-width: 100%; }
img { height: auto; vertical-align: middle; }
iframe { border: 0; }
a { color: var(--xanh); text-underline-offset: 4px; }
a:hover { color: #063f3b; }
:focus-visible { outline: 3px solid #17897d; outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--tieu-de); font-weight: 700; line-height: 1.22; text-wrap: balance; margin: 0 0 .6em; }
.khung { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.bo-qua { position: absolute; left: -9999px; }
.bo-qua:focus { left: 12px; top: 12px; z-index: 100; background: var(--trang); padding: 12px 18px; }
.nut, .woocommerce a.button, .woocommerce button.button, .wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; border: 0; border-radius: 27px;
  background: var(--xanh); color: #fff; font: 600 17px/1.2 var(--than); text-decoration: none; cursor: pointer;
}
.nut:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .wpcf7-submit:hover { background: #07433f; color: #fff; }
.nut--sang { background: var(--bac-ha); color: var(--xanh-dam); }
.nut--sang:hover { background: #fff; color: var(--xanh-dam); }

/* Đầu trang */
.dau-trang { background: var(--nen); position: relative; z-index: 20; }
.dau-trang__trong { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 16px; }
.dau-trang .custom-logo-link { display: flex; align-items: center; min-height: 44px; }
.dau-trang .custom-logo { width: 125px; height: 56px; object-fit: contain; }
.nut-menu { display: none; min-height: 44px; padding: 0 18px; border: 1px solid var(--xanh); border-radius: 22px; background: transparent; color: var(--xanh); font: 600 16px/1 var(--than); cursor: pointer; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu > ul { display: flex; flex-wrap: wrap; gap: 4px 30px; }
.menu li { position: relative; }
.menu a { display: flex; align-items: center; min-height: 44px; font-weight: 500; text-decoration: none; }
.menu .current-menu-item > a { text-decoration: underline; }
.menu .sub-menu { position: absolute; right: 0; top: 100%; min-width: 270px; padding: 10px 22px; background: var(--trang); border-radius: 16px; box-shadow: 0 14px 40px rgba(11, 74, 69, .16); visibility: hidden; opacity: 0; }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { visibility: visible; opacity: 1; }

/* Trang chủ */
.mo-dau { background: var(--bac-ha); }
.mo-dau__trong { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 48px; padding-top: 72px; }
.mo-dau__chu { flex: 1 1 400px; min-width: 0; padding-bottom: 80px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.mo-dau h1 { margin: 0; font-size: clamp(44px, 5.8vw, 76px); line-height: 1.06; letter-spacing: -.02em; }
.mo-dau p { margin: 0; font-size: 19px; max-width: 440px; text-wrap: balance; }
.mo-dau__anh { flex: 1 1 520px; min-width: 0; display: flex; align-items: flex-end; gap: clamp(10px, 1.6vw, 20px); }
.mo-dau__anh a { flex: 1 1 0; min-width: 0; display: block; overflow: hidden; border-radius: 999px 999px 0 0; }
.mo-dau__anh img { display: block; width: 100%; object-fit: cover; }
.mo-dau__anh a:nth-child(1) img { height: clamp(220px, 32vw, 400px); }
.mo-dau__anh a:nth-child(2) img { height: clamp(290px, 42vw, 540px); }
.mo-dau__anh a:nth-child(3) img { height: clamp(250px, 36vw, 460px); }
.phan { padding-block: 100px; }
.phan--trang { background: var(--trang); }
.phan h2 { margin: 0; font-size: clamp(31px, 3.6vw, 46px); letter-spacing: -.01em; line-height: 1.18; }
.phan__dau { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: 46px; }
.phan__dau p { margin: 0; max-width: 400px; }
.luoi-buoc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.buoc { color: inherit; text-decoration: none; display: flex; flex-direction: column; gap: 18px; }
.buoc img { width: 100%; height: 330px; object-fit: cover; border-radius: 150px 150px 20px 20px; }
.buoc h3 { margin: 0 0 6px; font-size: 23px; }
.buoc p { margin: 0; font-size: 16px; }
.buoc .ten { font-weight: 600; font-size: 17px; text-decoration: underline; text-decoration-color: transparent; }
.buoc:hover .ten { text-decoration-color: currentColor; }
.luoi-doi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.the-lon { display: flex; color: inherit; text-decoration: none; background: var(--bac-ha-nhat); border-radius: 28px; overflow: hidden; }
.the-lon img { flex: 1 1 50%; width: 50%; min-width: 0; height: 420px; object-fit: cover; }
.the-lon__chu { flex: 1 1 50%; min-width: 0; padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; }
.the-lon h3 { margin: 0 0 10px; font-size: 26px; }
.the-lon p { margin: 0; }
.thuong-hieu { display: flex; flex-wrap: wrap; align-items: center; gap: 64px; }
.thuong-hieu img { flex: 1 1 400px; width: 100%; min-width: 0; height: 560px; object-fit: cover; object-position: 60% 20%; border-radius: 280px 280px 28px 28px; }
.thuong-hieu > div { flex: 1 1 400px; min-width: 0; }
.thuong-hieu p { max-width: 500px; margin: 22px 0; }
.ds-bai { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--vien); }
.ds-bai a { display: block; padding: 24px 0; border-bottom: 1px solid var(--vien); font: 600 21px/1.4 var(--tieu-de); text-decoration: none; }
.ds-bai a:hover { text-decoration: underline; }
.phan--sat { padding-top: 0; }

/* Trang, bài viết */
.noi-dung { padding-block: 56px 100px; }
.noi-dung h1, .woocommerce-products-header h1 { font-size: clamp(31px, 4vw, 50px); letter-spacing: -.01em; margin-bottom: 28px; }
.hep { max-width: 780px; margin-inline: auto; }
.bai h2 { font-size: 29px; margin-top: 1.6em; }
.bai h3 { font-size: 23px; margin-top: 1.5em; }
.bai img { border-radius: 14px; }
.bai table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.bai td, .bai th { border: 1px solid var(--vien); padding: 10px 14px; text-align: left; }
.bai .wp-caption { max-width: 100%; margin: 28px 0; }
.bai .wp-caption-text { font-size: 15px; margin: 8px 0 0; }
.bai iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }
.bai .alignleft, .bai .alignright { float: none; }
.bai .aligncenter { display: block; margin-inline: auto; }
.ngay { display: block; margin: -14px 0 28px; font-size: 16px; }
.luoi-bai { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.the-bai a { color: inherit; text-decoration: none; display: block; }
.the-bai img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; background: var(--bac-ha-nhat); }
.the-bai h2 { font-size: 20px; line-height: 1.4; margin: 18px 0 8px; text-wrap: pretty; }
.the-bai a:hover h2 { text-decoration: underline; }
.the-bai p { margin: 0; font-size: 16px; }
.nav-links, .woocommerce nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 56px 0 0; padding: 0; border: 0; list-style: none; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; overflow: visible; }
.nav-links .page-numbers, .woocommerce nav.woocommerce-pagination ul li .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 22px; font-size: 16px; line-height: 1; text-decoration: none; color: var(--xanh); background: transparent; }
.nav-links .page-numbers.current, .woocommerce nav.woocommerce-pagination ul li span.current { background: var(--xanh); color: #fff; }
.search-form { display: flex; flex-wrap: wrap; gap: 10px; }
.search-form label { flex: 1 1 200px; }
.search-field, .wpcf7 input:not([type="submit"]), .wpcf7 textarea { width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid #5b8f88; border-radius: 14px; background: #fff; color: var(--chu); font: 400 17px/1.5 var(--than); }
.search-submit { min-height: 50px; padding: 0 22px; border: 0; border-radius: 25px; background: var(--bac-ha); color: var(--xanh-dam); font: 600 16px/1 var(--than); cursor: pointer; }
.wpcf7 label { display: block; font-weight: 600; }
.wpcf7 input:not([type="submit"]), .wpcf7 textarea { margin-top: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Sản phẩm */
.woocommerce .woocommerce-breadcrumb { color: var(--chu); font-size: 15px; margin-bottom: 26px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--xanh); }
.woocommerce .woocommerce-result-count { margin: 10px 0 30px; }
.woocommerce .woocommerce-ordering select { min-height: 46px; padding: 0 14px; border: 1px solid #5b8f88; border-radius: 14px; background: #fff; color: var(--chu); font: 400 16px/1.4 var(--than); }
.woocommerce ul.products { clear: both; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; margin: 0; padding: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product { width: auto !important; float: none !important; margin: 0 !important; padding: 0; text-align: left; }
.woocommerce ul.products li.product a { text-decoration: none; color: var(--chu); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 18px 0 0; font: 600 17px/1.45 var(--than); color: var(--chu); }
.woocommerce ul.products li.product a:hover .woocommerce-loop-product__title { text-decoration: underline; }
.sp-anh { display: block; overflow: hidden; aspect-ratio: 5 / 6; border-radius: 150px 150px 20px 20px; background: var(--bac-ha-nhat); }
.woocommerce ul.products li.product a .sp-anh img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; transform: scale(1.57); transform-origin: 50% 56%; }
.woocommerce div.product .product_title { font-size: clamp(29px, 3.4vw, 42px); }
.woocommerce div.product .woocommerce-product-gallery { opacity: 1 !important; }
.woocommerce div.product div.images img { border-radius: 24px; }
.woocommerce div.product div.summary { font-size: 18px; }
.woocommerce div.product .woocommerce-tabs { padding-top: 40px; }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin-bottom: 28px; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { border-color: var(--vien); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border: 0; background: transparent; padding: 0; margin: 0 28px 0 0; border-radius: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 12px 0; color: var(--chu); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: transparent; border-bottom: 3px solid var(--xanh); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: 820px; }
.related h2, .upsells h2 { font-size: 31px; margin: 48px 0 28px; }
.product_meta { font-size: 16px; }
.product_meta > span { display: block; }

/* Giá bán lẻ */
.buoc .gia, .the-lon .gia { margin-top: 10px; font-weight: 600; font-size: 18px; color: var(--xanh); }
.woocommerce ul.products li.product .price { margin: 0; padding-top: 6px; color: var(--xanh); font: 600 18px/1.4 var(--than); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--xanh); font: 600 26px/1.4 var(--than); margin: 0 0 18px; }
.woocommerce div.product .nhan-gia { font-size: 17px; font-weight: 400; color: var(--chu); }

/* Chân trang */
.chan-trang { background: var(--xanh-dam); color: #e6f7f3; }
.chan-trang a:not(.nut) { color: #e6f7f3; }
.chan-trang__tren { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 48px 64px; padding-block: 72px 48px; }
.chan-trang__tren > div { flex: 1 1 360px; min-width: 0; }
.chan-trang h2 { font-size: clamp(28px, 3vw, 38px); margin-bottom: 20px; }
.chan-trang .cong-ty { font-size: 16px; }
.chan-trang .cong-ty p { margin: 0 0 6px; }
.chan-trang .search-form { margin-top: 22px; }
.chinh-sach { columns: 2 320px; column-gap: 64px; list-style: none; margin: 0; padding: 0 0 64px; font-size: 16px; }
.chinh-sach li { break-inside: avoid; }
.chinh-sach a { display: block; padding: 9px 0; }

@media (max-width: 960px) {
  .luoi-buoc, .woocommerce ul.products, .luoi-bai { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .luoi-doi { grid-template-columns: minmax(0, 1fr); }
  .phan { padding-block: 76px; }
  .phan--sat { padding-top: 0; }
}

@media (max-width: 820px) {
  .co-js .nut-menu { display: inline-flex; align-items: center; }
  .dau-trang__trong { flex-wrap: wrap; }
  .menu { flex: 1 0 100%; }
  .co-js .menu { display: none; }
  .co-js .menu.mo { display: block; }
  .menu > ul { display: block; }
  .menu > ul > li { border-top: 1px solid var(--vien); }
  .menu .sub-menu { position: static; visibility: visible; opacity: 1; min-width: 0; padding: 0 0 10px 20px; background: transparent; box-shadow: none; }
}

@media (max-width: 600px) {
  .khung { padding-inline: 16px; }
  .mo-dau__trong { padding-top: 44px; gap: 8px; }
  .mo-dau__chu { flex-basis: 100%; padding-bottom: 32px; }
  .mo-dau__anh { flex-basis: 100%; }
  .luoi-buoc { gap: 32px 14px; }
  .buoc img { height: 210px; border-radius: 100px 100px 16px 16px; }
  .buoc h3 { font-size: 20px; }
  .buoc .ten { font-size: 16px; }
  .the-lon img { height: 300px; }
  .the-lon__chu { padding: 20px; }
  .the-lon h3 { font-size: 21px; }
  .thuong-hieu { gap: 32px; }
  .thuong-hieu img, .thuong-hieu > div { flex-basis: 100%; }
  .thuong-hieu img { height: 420px; }
  .luoi-bai { grid-template-columns: minmax(0, 1fr); }
  .woocommerce ul.products { gap: 30px 14px; }
  .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 16px; }
  .woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { float: none; margin: 0 0 18px; }
  .chan-trang__tren > div { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
