/*
Theme Name: Lash Studio
Theme URI: https://example.com/
Author: Your Company
Description: Theme WordPress cho nhà máy / thương hiệu mi giả bán sỉ (B2B). Danh mục sản phẩm, form báo giá, các khối trang chủ chỉnh sửa được bằng trình soạn thảo khối.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: lash-studio
*/

/* ---------- Tokens (màu chính được ghi đè từ Tùy biến) ---------- */
:root {
	--ls-rose: #c9566f;        /* điểm nhấn hồng */
	--ls-rose-deep: #a63f58;   /* hover */
	--ls-blush: #f6e3e6;       /* nền hồng nhạt */
	--ls-petal: #fbf4f5;       /* nền trang */
	--ls-ink: #2b1b21;         /* chữ chính */
	--ls-muted: #7a6268;       /* chữ phụ */
	--ls-line: #ead3d8;        /* đường kẻ */
	--ls-white: #ffffff;
	--ls-display: "Bodoni Moda", "Didot", "Times New Roman", serif;
	--ls-body: "Jost", "Segoe UI", system-ui, sans-serif;
	--ls-wrap: 1200px;
	--ls-gap: clamp(1rem, 3vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
	margin: 0;
	font-family: var(--ls-body);
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--ls-ink);
	background: var(--ls-petal);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ls-rose); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ls-rose-deep); }
:focus-visible { outline: 2px solid var(--ls-rose); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--ls-display); font-weight: 500; line-height: 1.12; margin: 0 0 .6em; color: var(--ls-ink); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
p { margin: 0 0 1.1em; max-width: 68ch; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 1rem; left: 1rem; z-index: 999; width: auto; height: auto; clip: auto; background: var(--ls-white); padding: .6rem 1rem; }

.ls-wrap { width: min(100% - 2 * var(--ls-gap), var(--ls-wrap)); margin-inline: auto; }

/* ---------- Nút ---------- */
.ls-btn, .wp-block-button__link, .ls-form button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .85rem 1.6rem; border-radius: 999px; border: 1px solid var(--ls-rose);
	background: var(--ls-rose); color: var(--ls-white); font-family: var(--ls-body);
	font-size: 1rem; font-weight: 500; text-decoration: none; cursor: pointer;
	transition: background-color .2s, color .2s;
}
.ls-btn:hover, .wp-block-button__link:hover, .ls-form button:hover { background: var(--ls-rose-deep); border-color: var(--ls-rose-deep); color: var(--ls-white); }
.ls-btn--ghost, .is-style-outline .wp-block-button__link { background: transparent; color: var(--ls-rose); }
.ls-btn--ghost:hover, .is-style-outline .wp-block-button__link:hover { background: var(--ls-rose); color: var(--ls-white); }

/* ---------- Thanh trên cùng ---------- */
.ls-topbar { background: var(--ls-rose); color: var(--ls-white); font-size: .875rem; }
.ls-topbar .ls-wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.ls-topbar a { color: var(--ls-white); text-decoration: none; }
.ls-social { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; }
.ls-social a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: inherit; }
.ls-social a:hover { background: rgba(255,255,255,.18); }
.ls-social svg { width: 17px; height: 17px; }

/* ---------- Header ---------- */
.ls-header { position: sticky; top: 0; z-index: 50; background: var(--ls-white); border-bottom: 1px solid var(--ls-line); }
.admin-bar .ls-header { top: 32px; }
.ls-header .ls-wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 78px; }
.ls-brand { display: flex; align-items: center; text-decoration: none; color: var(--ls-ink); flex-shrink: 0; }
.ls-brand img { max-height: 54px; width: auto; }
.ls-brand__name { font-family: var(--ls-display); font-size: 1.7rem; font-style: italic; letter-spacing: .01em; }
.ls-nav { margin-left: auto; }
.ls-nav ul { list-style: none; margin: 0; padding: 0; }
.ls-nav > ul { display: flex; gap: .25rem; }
.ls-nav li { position: relative; }
.ls-nav a { display: block; padding: .6rem .8rem; color: var(--ls-ink); text-decoration: none; font-size: .975rem; }
.ls-nav a:hover, .ls-nav .current-menu-item > a { color: var(--ls-rose); }
.ls-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 250px; background: var(--ls-white);
	border: 1px solid var(--ls-line); border-radius: 6px; padding: .5rem 0;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.ls-nav .sub-menu .sub-menu { top: -.5rem; left: 100%; }
.ls-nav li:hover > .sub-menu, .ls-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.ls-nav .sub-menu a { padding: .45rem 1.1rem; font-size: .93rem; }
.ls-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: .45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.ls-nav .sub-menu .menu-item-has-children > a::after { transform: rotate(-45deg); float: right; margin-top: .55rem; }
.ls-header__tools { display: flex; align-items: center; gap: .6rem; }
.ls-icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--ls-ink); cursor: pointer; }
.ls-icon-btn:hover { background: var(--ls-blush); }
.ls-icon-btn svg { width: 20px; height: 20px; }
.ls-menu-toggle { display: none; }
.ls-search-panel { display: none; border-top: 1px solid var(--ls-line); padding: 1rem 0; background: var(--ls-white); }
.ls-search-panel.is-open { display: block; }
.ls-search { display: flex; gap: .5rem; }
.ls-search input { flex: 1; }

@media (max-width: 1080px) {
	.ls-menu-toggle { display: grid; }
	.ls-header .ls-cta { display: none; }
	.ls-nav { position: fixed; inset: 78px 0 0 0; background: var(--ls-white); overflow-y: auto; padding: 1rem var(--ls-gap) 3rem; transform: translateX(100%); transition: transform .25s; }
	.admin-bar .ls-nav { top: 110px; }
	.ls-nav.is-open { transform: none; }
	.ls-nav > ul { flex-direction: column; }
	.ls-nav a { padding: .8rem 0; border-bottom: 1px solid var(--ls-line); font-size: 1.05rem; }
	.ls-nav .sub-menu, .ls-nav .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; padding: 0 0 0 1rem; display: none; min-width: 0; }
	.ls-nav li.is-expanded > .sub-menu { display: block; }
	.ls-nav .menu-item-has-children > a::after { float: right; margin-top: .5rem; }
	.ls-header__tools { margin-left: auto; }
}
@media (max-width: 600px) { .ls-topbar__note { display: none; } .ls-topbar .ls-wrap { justify-content: center; } }

/* ---------- Nội dung trang (khối Gutenberg) ---------- */
.ls-main { min-height: 50vh; }
.ls-content > * { width: min(100% - 2 * var(--ls-gap), var(--ls-wrap)); margin-inline: auto; }
.ls-content > .alignfull { width: 100%; }
.ls-content > .alignwide { width: min(100% - 2 * var(--ls-gap), 1320px); }
.ls-content .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) { max-width: var(--ls-wrap); margin-inline: auto; }

/* Section chung trong các mẫu khối */
.ls-section { padding: clamp(3.5rem, 8vw, 6.5rem) var(--ls-gap); }
.ls-section--blush { background: var(--ls-blush); }
.ls-section > .wp-block-columns { margin-top: 2rem; }
.ls-section .wp-block-columns { gap: clamp(1.25rem, 3vw, 2.5rem); }
.ls-section .wp-block-buttons { margin-top: 1.5rem; }
.ls-hero .wp-block-buttons { margin-top: 2rem; }
.ls-section--white { background: var(--ls-white); }
.ls-section--ink { background: var(--ls-ink); color: #f3e6e9; }
.ls-section--ink h2, .ls-section--ink h3 { color: var(--ls-white); }
.ls-lead { font-size: 1.15rem; color: var(--ls-muted); }
.ls-section--ink .ls-lead { color: #d9c3c8; }

/* Hero: dải sợi mi vẽ bằng SVG là điểm nhấn duy nhất */
.ls-hero {
	position: relative; overflow: hidden; background: var(--ls-white);
	padding: clamp(4rem, 10vw, 8rem) var(--ls-gap) clamp(4rem, 9vw, 7rem);
}
.ls-hero::after {
	content: ""; position: absolute; right: -4%; bottom: -10%; width: min(58vw, 720px); aspect-ratio: 1.3;
	background: var(--ls-fan) no-repeat center / contain; pointer-events: none; opacity: .9;
}
.ls-hero > * { position: relative; z-index: 1; }
.ls-hero h1 { max-width: 14ch; }
.ls-hero p { max-width: 46ch; font-size: 1.15rem; color: var(--ls-muted); }
@media (max-width: 760px) { .ls-hero::after { width: 110vw; right: -40%; bottom: -25%; opacity: .35; } }

/* Dải thông số */
.ls-specs { border-top: 1px solid var(--ls-line); border-bottom: 1px solid var(--ls-line); background: var(--ls-petal); padding: 0 var(--ls-gap); }
.ls-specs .wp-block-columns { gap: 0; margin: 0 auto; }
.ls-specs .wp-block-column { padding: 1.6rem 1.4rem; border-left: 1px solid var(--ls-line); }
.ls-specs .wp-block-column:first-child { border-left: 0; }
.ls-specs h3 { font-size: 1.6rem; margin: 0 0 .15em; }
.ls-specs p { margin: 0; color: var(--ls-muted); font-size: .95rem; }
@media (max-width: 781px) { .ls-specs .wp-block-column { border-left: 0; border-top: 1px solid var(--ls-line); } .ls-specs .wp-block-column:first-child { border-top: 0; } }

/* Lý do chọn / chất lượng */
.ls-points .wp-block-column h3 { padding-top: 1rem; border-top: 2px solid var(--ls-rose); }
.ls-points .wp-block-column p { color: var(--ls-muted); }

/* Ảnh trong section */
.ls-figure img { border-radius: 4px 140px 4px 4px; width: 100%; object-fit: cover; }

/* Đánh giá */
.ls-quotes .wp-block-column { background: var(--ls-white); padding: 2rem; border-radius: 6px; }
.ls-quotes .wp-block-column p:first-child { font-family: var(--ls-display); font-size: 1.25rem; line-height: 1.45; font-style: italic; }
.ls-quotes .wp-block-column p:last-child { margin: 0; color: var(--ls-muted); font-size: .95rem; }

/* Chứng chỉ / logo */
.ls-logos .wp-block-column { display: grid; place-items: center; padding: 1.2rem; border: 1px solid var(--ls-line); border-radius: 6px; background: var(--ls-white); min-height: 110px; }
.ls-logos p { margin: 0; font-family: var(--ls-display); font-size: 1.35rem; text-align: center; }

/* ---------- Lưới sản phẩm / bài viết ---------- */
.ls-grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 2rem 0; }
.ls-grid--posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ls-card { display: flex; flex-direction: column; background: var(--ls-white); text-decoration: none; color: var(--ls-ink); }
.ls-card__img { aspect-ratio: 1; overflow: hidden; background: var(--ls-blush); }
.ls-grid--posts .ls-card__img { aspect-ratio: 16/10; }
.ls-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ls-card:hover .ls-card__img img { transform: scale(1.04); }
.ls-card__body { padding: 1rem 1.1rem 1.3rem; }
.ls-card__title { font-family: var(--ls-display); font-size: 1.2rem; line-height: 1.25; margin: 0 0 .3rem; }
.ls-card:hover .ls-card__title { color: var(--ls-rose); }
.ls-card__meta { font-size: .875rem; color: var(--ls-muted); margin: 0; }
.ls-card__placeholder { display: block; width: 100%; height: 100%; background: var(--ls-fan) no-repeat center / 80% , var(--ls-blush); }

/* ---------- Trang lưu trữ, bài viết, sản phẩm ---------- */
.ls-page-head { background: var(--ls-blush); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.ls-page-head h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 0; }
.ls-page-head p { color: var(--ls-muted); margin: .8rem 0 0; }
.ls-breadcrumb { font-size: .9rem; color: var(--ls-muted); margin-bottom: .8rem; }
.ls-breadcrumb a { color: var(--ls-muted); }
.ls-body { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.ls-subcats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; padding: 0; list-style: none; }
.ls-subcats a { display: block; padding: .4rem 1rem; border: 1px solid var(--ls-rose); border-radius: 999px; text-decoration: none; font-size: .925rem; background: var(--ls-white); }
.ls-subcats a:hover { background: var(--ls-rose); color: var(--ls-white); }

.ls-entry { max-width: 780px; margin-inline: auto; }
.ls-entry img { border-radius: 4px; }
.ls-entry .wp-block-image { margin: 2rem 0; }

.ls-product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.ls-product__media img { width: 100%; background: var(--ls-white); }
.ls-spec-table { width: 100%; border-collapse: collapse; margin: 1.5rem 0 2rem; background: var(--ls-white); }
.ls-spec-table th, .ls-spec-table td { text-align: left; padding: .75rem 1rem; border-bottom: 1px solid var(--ls-line); vertical-align: top; }
.ls-spec-table th { width: 38%; font-weight: 500; color: var(--ls-muted); }
@media (max-width: 860px) { .ls-product { grid-template-columns: 1fr; } }

.ls-pagination { margin-top: 2.5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.ls-pagination .page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 .6rem; border: 1px solid var(--ls-line); text-decoration: none; background: var(--ls-white); }
.ls-pagination .current { background: var(--ls-rose); color: var(--ls-white); border-color: var(--ls-rose); }

/* ---------- Form báo giá ---------- */
.ls-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.25rem; background: var(--ls-white); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 6px; max-width: 900px; margin-inline: auto; }
.ls-form .ls-field--full { grid-column: 1 / -1; }
.ls-form label { display: block; font-size: .925rem; font-weight: 500; margin-bottom: .35rem; }
.ls-form .req { color: var(--ls-rose); }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], select, textarea {
	width: 100%; padding: .75rem .9rem; border: 1px solid var(--ls-line); border-radius: 4px;
	font: inherit; font-size: 1rem; color: var(--ls-ink); background: var(--ls-petal);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ls-rose); background: var(--ls-white); box-shadow: 0 0 0 3px rgba(201, 86, 111, .15); }
textarea { min-height: 140px; resize: vertical; }
.ls-form .ls-help { font-size: .85rem; color: var(--ls-muted); margin: .35rem 0 0; }
.ls-form .ls-hp { position: absolute; left: -9999px; }
.ls-notice { grid-column: 1 / -1; padding: 1rem 1.2rem; border-radius: 4px; margin: 0; max-width: none; }
.ls-notice--ok { background: #e7f4ec; color: #1e5a36; }
.ls-notice--err { background: #fbe9ec; color: #8a2338; }
@media (max-width: 640px) { .ls-form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.ls-footer { background: var(--ls-ink); color: #d9c3c8; font-size: .95rem; padding-top: clamp(3rem, 7vw, 5rem); }
.ls-footer a { color: #f3e6e9; text-decoration: none; }
.ls-footer a:hover { color: var(--ls-white); text-decoration: underline; }
.ls-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; }
.ls-footer h2 { font-family: var(--ls-body); font-size: 1rem; font-weight: 600; color: var(--ls-white); margin-bottom: 1rem; }
.ls-footer ul { list-style: none; margin: 0; padding: 0; }
.ls-footer li { margin-bottom: .45rem; }
.ls-footer .ls-brand__name { color: var(--ls-white); }
.ls-footer .ls-social { margin-top: 1rem; }
.ls-footer .ls-social a { border: 1px solid rgba(255,255,255,.25); }
.ls-footer__address { white-space: pre-line; }
.ls-footer__bottom { margin-top: 3rem; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .875rem; }
@media (max-width: 900px) { .ls-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ls-footer__grid { grid-template-columns: 1fr; } }

/* Nút WhatsApp nổi */
.ls-wa { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 6px 18px rgba(43, 27, 33, .25); }
.ls-wa:hover { color: #fff; background: #1ebe5b; }
.ls-wa svg { width: 28px; height: 28px; }

/* Căn chỉnh WordPress */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin-inline: auto; }
.wp-caption-text, figcaption { font-size: .875rem; color: var(--ls-muted); }

/* Logo tải lên */
.custom-logo-link { display: flex; align-items: center; flex-shrink: 0; }
.custom-logo-link img { max-height: 54px; width: auto; }
.ls-footer .custom-logo-link img { max-height: 60px; margin-bottom: 1rem; }
