/**
 * DD Nail — main.css
 * Clone giao diện lilynailsart.co (tham chiếu học tập, ghi nguồn).
 * Token theo ThietKe/STYLE-GUIDE.md. Mobile-first, breakpoint 750/990px.
 *
 * MỤC LỤC:
 *  1. Token + reset
 *  2. Layout chung (container, section, buttons, forms)
 *  3. Header + nav + drawer + search overlay
 *  4. Product card + grid + carousel
 *  5. Home sections (hero, as-seen-on, rich text, tiles, video, FAQ, social)
 *  6. Collection (banner, toolbar, pagination, promo card)
 *  7. Product (marquee, gallery, info, accordion, reasons, skip salon, sticky ATC)
 *  8. Content pages (breadcrumb, contact form, tutorial)
 *  9. Footer + floating
 * 10. WooCommerce cart/checkout override
 */

/* ============ 1. Token + reset ============ */
html { font-size: 62.5%; }

:root {
	--color-bg: #FFFFFF;
	--color-text: #000000;
	--color-text-muted: #888888;
	--color-primary: #EF89BC;
	--color-pink-light: #F5E6EE;
	--color-pink-pale: #FCE4EF;
	--color-card-bg: #EDEEF2;
	--color-sale-badge: #478130;
	--color-sale-price: #E40202;
	--color-dark: #191714;
	--color-shop-pay: #5A31F4;
	--color-rate: #EBBF20;
	--overlay-bg: rgba(0, 0, 0, .3);
	--body-font: 'Poppins', sans-serif;
	--heading-font: 'Raleway', sans-serif;
	--accent-serif: 'Playfair Display', serif;
	--body-size: 1.4rem;
	--page-width: 160rem;
	--section-spacing: 6rem;
	--radius: 8px;
	--btn-padding: 1.1rem 3.1rem;
	--input-height: 4.5rem;
	--transition: all .4s;
}

*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--body-font);
	font-size: var(--body-size);
	line-height: 1.71;
	color: var(--color-text);
	background: var(--color-bg);
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--heading-font);
	font-weight: 400;
	line-height: normal;
	margin: 0 0 1.6rem;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.6rem; }
h3 { font-size: 1.8rem; }

p { margin: 0 0 1.6rem; }
a { color: inherit; }
ul { padding-left: 2rem; }

button {
	font-family: inherit;
	font-size: inherit;
	cursor: pointer;
	background: none;
	border: 0;
	color: inherit;
	padding: 0;
}

.screen-reader-text,
.skip-link {
	position: absolute !important;
	width: 1px; height: 1px;
	clip-path: inset(50%);
	overflow: hidden;
	white-space: nowrap;
}
.skip-link:focus {
	width: auto; height: auto;
	clip-path: none;
	z-index: 999;
	background: #fff;
	padding: 1rem 2rem;
}

/* ============ 2. Layout chung ============ */
.container {
	max-width: var(--page-width);
	margin: 0 auto;
	padding: 0 1.5rem;
}
@media (min-width: 750px) { .container { padding: 0 3rem; } }

.section { margin: var(--section-spacing) 0; }

.btn {
	display: inline-block;
	font-family: var(--body-font);
	font-size: 1.4rem;
	line-height: 2.1rem;
	padding: var(--btn-padding);
	border: 1px solid transparent;
	border-radius: 0;
	text-decoration: none;
	text-align: center;
	transition: var(--transition);
	min-height: 4.4rem;
}
.btn--primary { background: var(--color-primary); color: #fff; font-weight: 700; text-transform: uppercase; }
.btn--primary:hover { opacity: .85; }
.btn--dark { background: #000; color: #F5F5F5; padding: 1.35rem 4rem; }
.btn--dark:hover { opacity: .8; }
.btn--hero { background: transparent; color: #fff; border: 2px solid #fff; font-weight: 600; padding: 1rem 2.6rem; }
.btn--hero:hover { background: #fff; color: #000; }
.btn--shop-pay { background: var(--color-shop-pay); color: #fff; font-weight: 600; }
.btn--shop-pay:hover { opacity: .85; }
.shop-word { font-weight: 700; font-style: italic; }

input[type="text"], input[type="email"], input[type="search"], input[type="number"], textarea, select {
	font-family: var(--body-font);
	font-size: 1.4rem;
	height: var(--input-height);
	border: 1px solid #000;
	border-radius: 0;
	padding: 0 1.5rem;
	background: #fff;
	color: #000;
	width: 100%;
}
textarea { height: auto; padding: 1.2rem 1.5rem; }

.section-heading {
	display: flex;
	align-items: baseline;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 2.4rem;
	position: relative;
	text-align: center;
}
.section-heading__title {
	font-family: var(--heading-font);
	font-size: 2.4rem;
	font-weight: 400;
	line-height: 1.3;
	margin: 0;
}
@media (min-width: 990px) { .section-heading__title { font-size: 2.8rem; } }
.section-heading__link {
	font-size: 1.2rem;
	color: #1818EF;
	text-decoration: underline;
	white-space: nowrap;
}

/* Section sản phẩm: heading trái + "See all items" nằm dưới (khớp gốc) */
.product-section .section-heading {
	flex-direction: column;
	align-items: flex-start;
	gap: .4rem;
	text-align: left;
}

/* ============ 3. Header ============ */
.site-header {
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 100;
	border-bottom: 1px solid #eee;
}
.site-header__row--main {
	display: flex;
	align-items: center;
	gap: 1rem;
	min-height: 6.4rem;
}
.site-branding { flex: 1; display: flex; justify-content: center; }
.site-branding__link { display: inline-flex; align-items: center; padding: .5rem 0; min-height: 4.4rem; }
body .site-header .site-branding__logo { width: auto; height: 3.4rem; }

.site-nav--main, .site-header__row--secondary, .header-currency, .header-icon-btn--account { display: none; }

.header-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 4.4rem;
	min-height: 4.4rem;
	color: #000;
}
.header-actions { display: flex; align-items: center; }
.header-cart { position: relative; text-decoration: none; }
.header-cart__count {
	position: absolute;
	top: .3rem;
	right: .1rem;
	background: var(--color-primary);
	color: #fff;
	font-size: 1.1rem;
	line-height: 1;
	min-width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0 .3rem;
}

@media (min-width: 990px) {
	.hamburger { display: none; }
	.site-branding { flex: 0 0 auto; justify-content: flex-start; }
	body .site-header .site-branding__logo { height: 4.4rem; }
	.site-header__row--main { min-height: 8.4rem; gap: 2rem; }
	.site-nav--main { display: block; flex: 1; }
	.site-header__row--secondary { display: block; border-top: 1px solid #f2f2f2; }
	.header-currency {
		display: inline-flex;
		align-items: center;
		gap: .6rem;
		font-size: 1.3rem;
		min-height: 4.4rem;
	}
	.header-icon-btn--account { display: inline-flex; }
}

.nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .4rem;
}
.site-nav--main .nav__list,
.site-nav--secondary .nav__list { justify-content: flex-start; }
.nav__item { position: relative; }
.nav__link {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: 1rem 1.2rem;
	font-size: 1.4rem;
	color: #000;
	text-decoration: none;
	min-height: 4.4rem;
}
.nav__link:hover { color: var(--color-primary); }
.nav__caret { transition: transform .2s; }
.nav__item--has-children:hover .nav__caret,
.nav__item--has-children:focus-within .nav__caret { transform: rotate(180deg); }
.nav__dropdown {
	list-style: none;
	margin: 0;
	padding: 1rem 0;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 20rem;
	background: #fff;
	border: 1px solid #eee;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
	z-index: 50;
}
.nav__item--has-children:hover .nav__dropdown,
.nav__item--has-children:focus-within .nav__dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.nav__sublink {
	display: block;
	padding: .8rem 2rem;
	text-decoration: none;
	font-size: 1.4rem;
	white-space: nowrap;
}
.nav__sublink:hover { color: var(--color-primary); }

/* Drawer mobile */
.drawer-overlay {
	position: fixed;
	inset: 0;
	background: var(--overlay-bg);
	z-index: 200;
}
.mobile-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: min(85vw, 36rem);
	background: #fff;
	z-index: 210;
	transform: translateX(-100%);
	transition: transform .3s ease, visibility .3s;
	overflow-y: auto;
	visibility: hidden;
}
.mobile-drawer.is-open { transform: translateX(0); visibility: visible; }
.mobile-drawer__head {
	display: flex;
	justify-content: flex-end;
	padding: 1rem;
	border-bottom: 1px solid #eee;
}
.drawer-menu { list-style: none; margin: 0; padding: 0; }
.drawer-menu__item { border-bottom: 1px solid #f2f2f2; }
.drawer-menu__link {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: .8rem;
	width: 100%;
	padding: 1.4rem 2rem;
	font-size: 1.5rem;
	text-decoration: none;
	text-align: left;
	min-height: 4.8rem;
}
.drawer-menu__link img.emoji { margin-right: .2rem; }
.drawer-menu__icon { font-size: 1.8rem; line-height: 1; margin-left: auto; }
.drawer-menu__sub {
	list-style: none;
	margin: 0;
	padding: 0 0 1rem;
	display: none;
	background: #fafafa;
}
.drawer-menu__item.is-open .drawer-menu__sub { display: block; }
.drawer-menu__sublink {
	padding: 1.1rem 3rem;
	font-size: 1.4rem;
	text-decoration: none;
	min-height: 4.4rem;
	display: flex;
	align-items: center;
}

/* Search overlay */
.search-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: #fff;
	z-index: 220;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
	padding: 2rem 0;
}
.search-overlay__inner { display: flex; align-items: center; gap: 1rem; }
.search-overlay__form { display: flex; flex: 1; gap: .5rem; align-items: center; }
.search-overlay__input { flex: 1; }

/* ============ 4. Product card + grid + carousel ============ */
.product-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.6rem 1rem;
}
@media (min-width: 750px) and (max-width: 989px) { .product-grid--collection { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 990px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 2.4rem 1.6rem; } }

.product-card { min-width: 0; }
.product-card__media {
	position: relative;
	display: block;
	background: var(--color-card-bg);
	aspect-ratio: 1 / 1;
	overflow: hidden;
}
.product-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity .4s;
}
.product-card__img--hover {
	position: absolute;
	inset: 0;
	opacity: 0;
}
.product-card__media:hover .product-card__img--hover { opacity: 1; }
.product-card__media:hover .product-card__img--main { opacity: 0; }

.product-card__badges {
	position: absolute;
	top: 1rem;
	left: 1rem;
	right: 1rem;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: .6rem .8rem;
}
.badge {
	font-size: 1.1rem;
	font-weight: 600;
	line-height: 1;
	color: #fff;
	padding: .7rem 1rem;
	border-radius: 4px;
	white-space: nowrap;
}
.badge--sale { background: var(--color-sale-badge); }
.badge--label { background: var(--color-primary); }

.product-card__info { padding: 1rem 0 0; text-align: left; }
.product-card__title {
	font-family: var(--body-font);
	font-size: 1.4rem;
	font-weight: 400;
	margin: 0 0 .4rem;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.product-card__title a { text-decoration: none; }
.product-card__title a:hover { text-decoration: underline; }

.stars { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.2rem; }
.stars__icons { color: var(--color-rate); letter-spacing: .1em; }
.stars__count { color: var(--color-text); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .8rem; font-size: 1.6rem; }
.price__sale { color: var(--color-sale-price); }
.price__regular { color: #000; }

/* Carousel scroll-snap */
.carousel { position: relative; }
.carousel__track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	gap: 1rem;
}
.carousel__track::-webkit-scrollbar { display: none; }
.product-grid--carousel { display: flex; }
.product-grid--carousel .product-card {
	flex: 0 0 calc(50% - .5rem);
	scroll-snap-align: start;
}
@media (min-width: 990px) {
	.carousel__track { gap: 1.6rem; }
	.product-grid--carousel .product-card { flex: 0 0 calc(25% - 1.2rem); }
}
.carousel__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 4.4rem;
	height: 4.4rem;
	background: #fff;
	border: 0;
	border-radius: 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
	font-size: 2.2rem;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}
.carousel__arrow--prev { left: -.5rem; }
.carousel__arrow--next { right: -.5rem; }
@media (min-width: 990px) {
	.carousel__arrow--prev { left: -2rem; }
	.carousel__arrow--next { right: -2rem; }
}

/* ============ 5. Home sections ============ */
.hero { position: relative; overflow: hidden; }
.hero__track { position: relative; }
.hero__slide { display: none; position: relative; }
.hero__slide.is-active { display: block; }
.hero__img { width: 100%; height: auto; }
.hero__ctas {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 2.4rem;
	display: flex;
	justify-content: center;
	gap: 1.6rem;
	z-index: 3;
}
.hero__arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 4;
	color: #fff;
	font-size: 3.6rem;
	width: 4.4rem;
	height: 4.4rem;
	display: flex;
	align-items: center;
	justify-content: center;
	text-shadow: 0 1px 6px rgba(0, 0, 0, .5);
}
.hero__arrow--prev { left: .5rem; }
.hero__arrow--next { right: .5rem; }
.hero__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: center;
	gap: 0;
	z-index: 4;
}
/* Dot 9px nhưng vùng chạm 44px (padding + background-clip, BUG-19) */
.hero__dot {
	width: 4.4rem;
	height: 4.4rem;
	border-radius: 50%;
	background: rgba(255, 255, 255, .6);
	background-clip: content-box;
	border: 0;
	padding: 1.75rem;
}
.hero__dot.is-active { background-color: #fff; }
.step-slider__dots .hero__dot { background-color: #ddd; }
.step-slider__dots .hero__dot.is-active { background-color: #000; }

.as-seen-on { margin: 3rem 0; }
.as-seen-on__inner { display: flex; justify-content: center; }

.rich-text--pink { background: var(--color-pink-light); padding: 4rem 0; }
.rich-text__inner { text-align: center; max-width: 90rem; }
.rich-text__heading {
	font-family: var(--heading-font);
	font-size: 2.2rem;
	font-weight: 900;
	margin-bottom: 1.6rem;
}
@media (min-width: 990px) { .rich-text__heading { font-size: 2.8rem; } }
.rich-text__inner .btn { margin-top: 1rem; }
.rich-text--strip { margin-bottom: 0; }
.rich-text--strip .rich-text__heading { margin-bottom: 0; }

/* Tiles: Shape / Collection */
.tile-row {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 60%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	gap: 1rem;
	scrollbar-width: none;
}
.tile-row::-webkit-scrollbar { display: none; }
@media (min-width: 750px) { .tile-row { grid-auto-columns: 33%; } }
@media (min-width: 990px) {
	.tile-row { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); gap: 1.6rem; overflow: visible; }
}
.tile { text-decoration: none; scroll-snap-align: start; }
.tile__img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: var(--color-card-bg); }
.tile__label {
	display: block;
	text-align: center;
	text-transform: uppercase;
	font-size: 1.4rem;
	padding: 1rem 0;
}
.tile:hover .tile__label { color: var(--color-primary); }

/* Video slider — full-bleed, thumbnail 9:16 lớn như gốc (BUG-07) */
.video-slider > .container { max-width: none; padding: 0; }
.video-slider .carousel__track { padding: 0 1.5rem; }
/* Mũi tên nằm trong mép viewport (carousel giờ full-bleed, offset âm sẽ gây tràn ngang) */
.video-slider .carousel__arrow--prev { left: 1rem; }
.video-slider .carousel__arrow--next { right: 1rem; }
.video-slider__track { align-items: center; }
.video-card {
	position: relative;
	flex: 0 0 72%;
	scroll-snap-align: center;
	border-radius: var(--radius);
	overflow: hidden;
}
@media (min-width: 750px) { .video-card { flex: 0 0 42%; } }
@media (min-width: 990px) { .video-card { flex: 0 0 28.5%; } }
.video-card__poster { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; }
.video-card__play {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.video-card__duration {
	position: absolute;
	right: .8rem;
	bottom: .8rem;
	background: rgba(0, 0, 0, .65);
	color: #fff;
	font-size: 1.2rem;
	padding: .2rem .6rem;
	border-radius: 3px;
}

/* FAQ accordion — rộng gần hết page-width như gốc (BUG-06) */
.faqs__inner { max-width: none; }
.faqs .accordion__trigger { min-height: 6.4rem; padding: 1.8rem 0; }
.accordion__item { border-bottom: 1px solid #e5e5e5; }
.accordion__heading { margin: 0; }
.accordion__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: 1rem 0;
	min-height: 4.4rem;
	font-family: var(--heading-font);
	font-size: 1.4rem;
	text-align: left;
}
.accordion__icon { font-size: 2rem; line-height: 1; transition: transform .2s; }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(45deg); }
.accordion__content { padding: 0 0 1.6rem; font-size: 1.4rem; }
.accordion__content > :last-child { margin-bottom: 0; }

/* Social grid */
.social-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: .4rem;
}
@media (min-width: 750px) { .social-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 990px) { .social-grid { grid-template-columns: repeat(5, 1fr); } }
.social-grid__item { position: relative; display: block; }
.social-grid__item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.social-grid__video-icon {
	position: absolute;
	top: .8rem;
	right: .8rem;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .5));
}

/* ============ 6. Collection ============ */
.collection-banner img { width: 100%; }
.collection__title {
	text-align: center;
	font-size: 2.8rem;
	margin: 3rem 0 2rem;
	text-transform: uppercase;
}
.collection-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 2.4rem;
}
.collection-toolbar__filter {
	display: inline-flex;
	align-items: center;
	gap: .8rem;
	border: 1px solid #000;
	padding: 0 1.6rem;
	height: var(--input-height);
	font-size: 1.3rem;
}
.collection-toolbar__sort select { width: auto; min-width: 15rem; height: var(--input-height); }

/* Filter drawer tĩnh (BUG-11, US9 Could) */
.filter-drawer {
	position: fixed;
	top: 0;
	left: 0;
	bottom: 0;
	width: 32rem;
	max-width: 86vw;
	background: #fff;
	z-index: 210;
	transform: translateX(-100%);
	transition: transform .3s;
	overflow-y: auto;
	visibility: hidden;
}
.filter-drawer.is-open { transform: translateX(0); visibility: visible; }
.filter-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 1rem 1rem 2rem;
	border-bottom: 1px solid #eee;
}
.filter-drawer__title { font-size: 1.4rem; font-weight: 700; letter-spacing: .06em; margin: 0; }
.filter-drawer__body { padding: 1rem 2rem 2rem; }
.filter-drawer__group { border-bottom: 1px solid #f2f2f2; padding: 1.4rem 0; }
.filter-drawer__group-title { font-size: 1.3rem; font-weight: 600; margin: 0 0 1rem; text-transform: uppercase; }
.filter-drawer__option {
	display: flex;
	align-items: center;
	gap: .8rem;
	font-size: 1.4rem;
	padding: .6rem 0;
	min-height: 4.4rem;
}
.filter-drawer__option input[type="checkbox"] { width: 1.8rem; height: 1.8rem; accent-color: #000; }
.filter-drawer__price-row { display: flex; gap: 1rem; }
.filter-drawer__price-row .field { flex: 1; }
.filter-drawer__price-row .field__label { font-size: 1.2rem; }
.filter-drawer__footer { display: flex; gap: 1rem; padding-top: 1.6rem; }
.filter-drawer__footer .btn { flex: 1; }

.product-grid--collection { margin-bottom: 3rem; }

.promo-card { display: flex; flex-direction: column; align-items: flex-start; }
.promo-card__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.promo-card__text { font-size: 1.8rem; margin: 1.2rem 0 .8rem; }
.promo-card__btn { padding: 1rem 1.8rem; font-size: 1.3rem; align-self: flex-start; }

.collection-pagination { text-align: center; margin: 3rem 0 6rem; }
.collection-pagination__count { color: var(--color-text-muted); margin-bottom: 1.6rem; }
.collection-pagination .page-numbers {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .8rem;
}
.collection-pagination .page-numbers li { margin: 0; }
.collection-pagination .page-numbers a,
.collection-pagination .page-numbers span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 4.4rem;
	height: 4.4rem;
	padding: 0 1rem;
	border: 1px solid #000;
	text-decoration: none;
	font-size: 1.4rem;
}
.collection-pagination .page-numbers span.current { background: #000; color: #fff; }
.collection-empty { text-align: center; margin: 6rem 0; }

/* ============ 7. Product ============ */
.marquee {
	background: var(--color-dark);
	color: #fff;
	overflow: hidden;
	padding: 1.8rem 0;
	white-space: nowrap;
}
.marquee__track {
	display: inline-flex;
	animation: ddnail-marquee 30s linear infinite;
}
.marquee__item { flex: none; font-size: 1.4rem; }
.marquee__item::after { content: "·"; padding: 0 2.4rem; }
@keyframes ddnail-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.marquee__track { animation: none; }
	.hero__track, .carousel__track { scroll-behavior: auto; }
}

.product-main {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	margin: 3rem auto;
}
@media (min-width: 990px) {
	.product-main { grid-template-columns: 1.1fr 1fr; gap: 5rem; }
}

.product-gallery { display: flex; flex-direction: column-reverse; gap: 1rem; min-width: 0; }
@media (min-width: 990px) {
	.product-gallery { flex-direction: row; align-items: flex-start; position: sticky; top: 10rem; }
}
.product-gallery__thumbs {
	display: flex;
	gap: .8rem;
	overflow-x: auto;
	scrollbar-width: none;
}
.product-gallery__thumbs::-webkit-scrollbar { display: none; }
@media (min-width: 990px) {
	.product-gallery__thumbs { flex-direction: column; overflow: visible; flex: 0 0 8rem; }
}
.product-gallery__thumb {
	flex: 0 0 7rem;
	width: 7rem;
	height: 7rem;
	border: 1px solid #ddd;
	padding: 0;
	background: var(--color-card-bg);
}
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-gallery__thumb.is-active { border-color: #000; }
.product-gallery__main { flex: 1; position: relative; background: var(--color-card-bg); min-width: 0; }
.product-gallery__image { display: none; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product-gallery__image.is-active { display: block; }

.product-info > .stars { margin-bottom: .5rem; }
.product-info__title { font-size: 2.8rem; margin: 0 0 .6rem; }
.product-info__shape { color: #444; margin-bottom: 1rem; }
.product-info__price-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.2rem;
}
.product-info__price-row .price { font-size: 2rem; }
.chip {
	font-size: 1.1rem;
	font-weight: 600;
	padding: .4rem .9rem;
	color: #fff;
	white-space: nowrap;
}
.chip--save { background: var(--color-sale-badge); }
.chip--label { background: var(--color-primary); }
.product-info__installments { font-size: 1.3rem; color: #333; }
.shop-word--pay { color: var(--color-shop-pay); }
.product-info__learn-more { text-decoration: underline; }

.option-group { margin-bottom: 1.6rem; }
.option-group__label { margin-bottom: .6rem; font-weight: 500; }
.option-group__value { font-weight: 400; }
/* Hàng "Size: XS" + link Size Guide góc phải như gốc (BUG-16) */
.option-group__label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: .6rem;
}
.option-group__label-row .option-group__label { margin-bottom: 0; }
.size-guide-link {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	font-size: 1.3rem;
	text-decoration: underline;
	padding: .8rem 0;
}
.option-group__options { display: flex; flex-wrap: wrap; gap: .8rem; }
.option-btn {
	border: 1px solid #999;
	min-width: 4.6rem;
	min-height: 4.4rem;
	padding: .6rem 1.4rem;
	background: #fff;
	font-size: 1.4rem;
	transition: border-color .2s;
}
.option-btn.is-selected { border: 2px solid #000; font-weight: 600; }
.option-btn--guide { display: inline-flex; align-items: center; gap: .6rem; border-style: dashed; }

.qty-stepper {
	display: inline-flex;
	border: 1px solid #000;
	height: var(--input-height);
}
.qty-stepper__btn { width: 4.4rem; font-size: 1.8rem; }
.qty-stepper__input {
	width: 5.4rem;
	border: 0;
	text-align: center;
	height: auto;
	padding: 0;
	appearance: textfield;
	-moz-appearance: textfield;
}
.qty-stepper__input::-webkit-inner-spin-button { display: none; }

.product-cart-form .btn { display: block; width: 100%; margin-bottom: 1rem; }
.product-cart-form__row { display: flex; gap: 1.2rem; margin-bottom: 1rem; }
.product-cart-form__row .qty-stepper { flex: 0 0 auto; }
.product-cart-form__row .btn--add-to-cart { flex: 1; width: auto; margin-bottom: 0; }
.btn--add-to-cart { font-size: 1.8rem; padding: 1.2rem 2rem; }
.product-info__more-options { text-align: center; }
.product-info__more-options a { font-size: 1.3rem; }

/* Trust badge: hộp trắng viền + icon tròn hồng như gốc (BUG-16) */
.trust-badges {
	list-style: none;
	margin: 2rem 0;
	padding: 1.6rem;
	background: #fff;
	border: 1px solid #e5e5e5;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	text-align: center;
}
.trust-badges__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: .8rem;
	font-size: 1.2rem;
	line-height: 1.4;
}
.trust-badges__item svg {
	box-sizing: content-box;
	background: var(--color-primary);
	color: #fff;
	border-radius: 50%;
	padding: .8rem;
}

.accordion--product .accordion__trigger { text-transform: uppercase; font-weight: 700; font-family: var(--body-font); font-size: 1.3rem; }

.product-info__size-link {
	display: flex;
	align-items: center;
	gap: .8rem;
	margin: 2rem 0 1rem;
}
.product-info__size-link a { font-weight: 600; font-size: 1.3rem; }
.product-share { display: flex; gap: 1.2rem; margin-top: 1.6rem; }
.product-share__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4.4rem;
	height: 4.4rem;
	border: 1px solid #ddd;
	border-radius: 50%;
	color: #000;
}

/* Modal size guide */
.modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center; }
.modal[hidden], .search-overlay[hidden], .drawer-overlay[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: var(--overlay-bg); }
.modal__dialog {
	position: relative;
	background: #fff;
	max-width: min(92vw, 70rem);
	max-height: 88vh;
	overflow: auto;
	padding: 2rem;
	border-radius: var(--radius);
}
.modal__close {
	position: absolute;
	top: .6rem;
	right: .6rem;
	width: 4.4rem;
	height: 4.4rem;
	font-size: 1.8rem;
	background: #fff;
	z-index: 2;
}

/* Skip the salon */
.skip-salon {
	background: linear-gradient(180deg, #fff 0%, var(--color-pink-pale) 100%);
	padding: 5rem 0 2rem;
	text-align: center;
}
.skip-salon__heading { font-size: 3rem; font-weight: 900; line-height: 1.2; }
@media (min-width: 990px) { .skip-salon__heading { font-size: 4.2rem; } }
.skip-salon__pink { color: var(--color-primary); }
.skip-salon__caption { color: #555; }

/* 4 reasons */
.reasons {
	background: linear-gradient(180deg, var(--color-pink-pale) 0%, #fff 100%);
	padding: 5rem 0;
	text-align: center;
}
.reasons__heading { font-size: 2.2rem; font-weight: 900; max-width: 76rem; margin: 0 auto 3rem; }
@media (min-width: 990px) { .reasons__heading { font-size: 3rem; } }
.reasons__pink { color: var(--color-primary); }
.reasons__underline { text-decoration: underline; text-decoration-color: var(--color-sale-price); text-underline-offset: .5rem; }
.reasons__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.6rem;
	text-align: left;
}
@media (min-width: 750px) { .reasons__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 990px) { .reasons__grid { grid-template-columns: repeat(4, 1fr); } }
.reason-card {
	background: #fff;
	padding: 2.4rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .05);
	border-radius: var(--radius);
}
.reason-card__number {
	display: inline-flex;
	font-size: 3rem;
	font-weight: 900;
	color: var(--color-primary);
	font-family: var(--heading-font);
	margin-bottom: 1rem;
}
.reason-card__title { font-family: var(--body-font); font-weight: 700; font-size: 1.5rem; margin-bottom: .6rem; }
.reason-card p { margin: 0; color: #444; }

/* Sticky ATC mobile */
.sticky-atc {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff;
	border-top: 1px solid #eee;
	display: flex;
	align-items: center;
	gap: 1.2rem;
	padding: 1rem 1.5rem;
	z-index: 90;
}
.sticky-atc__btn { flex: 1; }
@media (min-width: 990px) { .sticky-atc { display: none; } }

/* ============ 8. Content pages ============ */
.breadcrumb {
	display: flex;
	justify-content: center;
	gap: .8rem;
	font-size: 1.1rem;
	letter-spacing: .05em;
	margin: 2.4rem 0 1rem;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__current { color: var(--color-text-muted); }

.content-page { max-width: 138rem; }
.content-page__title {
	text-align: center;
	font-size: 3.2rem;
	margin-bottom: 3rem;
}
@media (min-width: 990px) { .content-page__title { font-size: 4.8rem; } }
.content-page__body { margin-bottom: 4rem; }
.content-page__body img { margin: 2rem auto; }
.content-page__body .content-img--small { max-width: min(48rem, 100%); margin-left: 0; }

.shop-cta { background: var(--color-pink-light); padding: 4rem 0; margin-top: 4rem; }
.shop-cta__inner { text-align: center; }

.form-message { padding: 1.2rem 1.6rem; margin-bottom: 1.6rem; }
.form-message--success { background: #e6f4e6; color: #2c6b2c; }
.form-message--error { background: #fdecec; color: #b30000; }

.contact-form { max-width: 76rem; margin: 0 auto 4rem; }
.contact-form__title { text-align: center; font-size: 2.4rem; margin-bottom: .4rem; }
.contact-form__subtitle { text-align: center; color: var(--color-text-muted); margin-bottom: 2.4rem; }
.contact-form__row { display: grid; grid-template-columns: 1fr; gap: 1.6rem; }
@media (min-width: 750px) { .contact-form__row { grid-template-columns: 1fr 1fr; } }
.field { display: block; margin-bottom: 1.6rem; }
.field__label { display: block; margin-bottom: .5rem; font-size: 1.3rem; }
.contact-form__note { color: var(--color-text-muted); font-size: 1.2rem; }

/* Tutorial */
.tutorial-block { margin: 4rem 0; }
.tutorial-block__title { font-size: 2.4rem; font-weight: 900; text-align: center; }
.step-slider { position: relative; max-width: 76rem; margin: 0 auto; padding: 0 4rem; }
.step-slider__viewport { min-height: 14rem; display: flex; align-items: center; }
.step-slide { display: none; text-align: center; width: 100%; }
.step-slide.is-active { display: block; }
.step-slide__title { font-weight: 900; font-size: 1.8rem; }
.step-slider__dots { display: flex; justify-content: center; gap: .8rem; margin-top: 1rem; }
.tutorial-block__tips {
	background: var(--color-pink-light);
	padding: 2.4rem;
	max-width: 76rem;
	margin: 2.4rem auto 0;
}
.tutorial-block__tips-title { font-weight: 900; }
.tutorial-block__cta { text-align: center; margin: 2rem 0 0; }
.tutorial-contact__title { text-align: center; font-size: 2.4rem; font-weight: 900; margin: 4rem 0 2rem; }

/* ============ 9. Footer + floating ============ */
.site-footer { margin-top: var(--section-spacing); }
.footer-newsletter {
	background: var(--color-pink-light);
	padding: 4rem 0;
	text-align: center;
}
.footer-newsletter__heading {
	font-family: var(--accent-serif);
	font-size: 2.2rem;
	font-weight: 400;
	max-width: 60rem;
	margin: 0 auto 2rem;
}
@media (min-width: 990px) { .footer-newsletter__heading { font-size: 2.64rem; } }
.footer-newsletter__form {
	display: flex;
	max-width: 46rem;
	margin: 0 auto;
}
.footer-newsletter__input { flex: 1; border-right: 0; }
.footer-newsletter__btn { height: var(--input-height); padding: 0 2.4rem; }
.footer-newsletter__message { margin-top: 1.2rem; }

.footer-main {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	padding-top: 4rem;
	padding-bottom: 3rem;
}
@media (min-width: 750px) { .footer-main { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-col__title { font-size: 1.5rem; font-weight: 700; font-family: var(--body-font); letter-spacing: .04em; margin-bottom: 1.4rem; }
.footer-col__title--brand img { display: block; width: auto; height: 4rem; }
.footer-col__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 4.4rem; margin-bottom: 0; text-align: left; }
.footer-col__icon { font-size: 1.8rem; line-height: 1; }
@media (max-width: 749px) {
	.footer-col--menu { border-bottom: 1px solid rgba(0, 0, 0, .08); }
	.footer-col--menu .footer-menu { display: none; padding-bottom: 1rem; }
	.footer-col--menu.is-open .footer-menu { display: block; }
	.footer-main { gap: 1rem; }
}
@media (min-width: 750px) {
	.footer-col__toggle { pointer-events: none; margin-bottom: 1.4rem; }
	.footer-col__icon { display: none; }
}
.footer-col p { font-size: 1.3rem; }
/* Email chữ đen thường như gốc (BUG-15) + vùng chạm ≥44px (BUG-19) */
.footer-mail {
	text-decoration: none;
	color: #000;
	display: inline-block;
	padding: 1.3rem 0;
	margin: -1.3rem 0;
}
.btn--follow {
	display: inline-flex;
	align-items: center;
	gap: .8rem;
	border-radius: 999px;
	padding: 1.1rem 2.4rem;
}
.footer-menu { list-style: none; margin: 0; padding: 0; }
.footer-menu a {
	display: inline-block;
	padding: .5rem 0;
	font-size: 1.3rem;
	text-decoration: none;
	text-transform: uppercase;
}
.footer-menu a:hover { text-decoration: underline; }
.footer-social { list-style: none; display: flex; gap: 1.4rem; margin: 1.6rem 0 0; padding: 0; }
.footer-social a {
	display: inline-flex;
	width: 4rem;
	height: 4rem;
	align-items: center;
	justify-content: center;
	color: #000;
	background: rgba(255, 255, 255, .55);
	border: 1px solid rgba(0, 0, 0, .06);
	border-radius: 4px;
}

.footer-bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.2rem;
	padding-top: 1.6rem;
	padding-bottom: 2.4rem;
	border-top: 1px solid rgba(0, 0, 0, .08);
	font-size: 1.2rem;
}
@media (min-width: 990px) {
	.footer-bottom { flex-direction: row; justify-content: space-between; }
}
.footer-currency { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.2rem; min-height: 4.4rem; }
.footer-copyright { margin: 0; color: #333; }
.footer-copyright a { text-decoration: none; display: inline-block; padding: 1.35rem .4rem; margin: -1.35rem -.4rem; }
.footer-payments { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 0; padding: 0; }
.footer-payments__item { display: inline-flex; }
.footer-payments__item svg {
	width: 3.8rem;
	height: 2.4rem;
	border: 1px solid #ddd;
	border-radius: 3px;
	background: #fff;
}

.reviews-tab {
	position: fixed;
	right: 0;
	top: 45%;
	z-index: 80;
	background: var(--color-primary);
	color: #fff;
	writing-mode: vertical-rl;
	padding: 1.4rem .6rem;
	font-size: 1.2rem;
	text-decoration: none;
}
.chat-fab {
	position: fixed;
	right: 1.6rem;
	bottom: 1.6rem;
	z-index: 80;
	width: 5.2rem;
	height: 5.2rem;
	border-radius: 50%;
	background: var(--color-primary);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
body.single-product .chat-fab { bottom: 8rem; }
@media (min-width: 990px) { body.single-product .chat-fab { bottom: 1.6rem; } }

/* ============ 10. WooCommerce cart/checkout ============ */
body.woocommerce-cart .site-main,
body.woocommerce-checkout .site-main {
	max-width: 120rem;
	margin: 3rem auto;
	padding: 0 1.5rem;
	font-size: 1.4rem;
}
body.woocommerce-cart .site-main h1,
body.woocommerce-checkout .site-main h1 { text-align: center; text-transform: uppercase; }
.woocommerce button.button,
.wc-block-components-button,
.wp-element-button {
	border-radius: 0 !important;
	background: var(--color-primary) !important;
	color: #fff !important;
}
.wc-block-components-product-badge { border-radius: 0; }
