/*
 Theme Name:   Divi Child – 52 Beauty
 Theme URI:    https://52beautysalon.com
 Description:  Child theme của Divi cho 52 Beauty Nail Supply. Mọi tuỳ biến CSS/PHP đặt ở đây để không mất khi cập nhật Divi.
 Author:       52 Beauty
 Template:     Divi
 Version:      1.0.0
 Text Domain:  divi-child
*/

/* ============ 1. BRAND TOKENS ============ */
:root {
	--b52-deep: #3C096C;
	--b52-primary: #7B2CBF;
	--b52-accent: #9D4EDD;
	--b52-soft: #E0AAFF;
	--b52-lav: #F7F1FD;
	--b52-lav-2: #EFE4FB;
	--b52-ink: #2A2233;
	--b52-muted: #6E6479;
	--b52-white: #FFFFFF;
	--b52-radius: 18px;
	--b52-shadow: 0 18px 40px -18px rgba(60, 9, 108, .35);
	--b52-serif: 'Lora', Georgia, serif;
	--b52-sans: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
}

/* ============ 2. GLOBAL TYPOGRAPHY ============ */
body, body p, body li, .et_pb_text, .et_pb_module { font-family: var(--b52-sans); color: var(--b52-ink); }
body { font-size: 16px; line-height: 1.75; font-weight: 400; }
h1, h2, h3, h4, h5, h6,
.et_pb_module h1, .et_pb_module h2, .et_pb_module h3, .et_pb_module h4 {
	font-family: var(--b52-serif); color: var(--b52-deep); font-weight: 700; line-height: 1.2; padding-bottom: 0;
}
a { color: var(--b52-primary); transition: color .2s ease; }
a:hover { color: var(--b52-accent); }
::selection { background: var(--b52-soft); color: var(--b52-deep); }

/* ============ 3. HEADER ============ */
#main-header {
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 1px 0 rgba(60, 9, 108, .08), 0 10px 30px -20px rgba(60, 9, 108, .4);
	backdrop-filter: saturate(160%) blur(8px);
}
#logo { max-height: 62%; }
#top-menu li a, .et_mobile_menu li a {
	font-family: var(--b52-sans); font-weight: 500; font-size: 15px; color: var(--b52-deep) !important; letter-spacing: .02em;
}
#top-menu li a:hover, #top-menu li.current-menu-item > a { color: var(--b52-accent) !important; opacity: 1 !important; }
#top-menu li.b52-menu-cta > a {
	background: var(--b52-primary); color: #fff !important; padding: 10px 22px !important; border-radius: 999px; margin-top: -10px;
}
#top-menu li.b52-menu-cta > a:hover { background: var(--b52-deep); color: #fff !important; }
.mobile_menu_bar:before { color: var(--b52-primary) !important; }
.et_mobile_menu { border-top-color: var(--b52-primary) !important; }

/* ============ 4. BUTTONS ============ */
.b52-btn {
	display: inline-block; font-family: var(--b52-sans) !important; font-weight: 600; font-size: 15px; letter-spacing: .02em;
	padding: 14px 30px; border-radius: 999px; border: 2px solid var(--b52-primary); background: var(--b52-primary);
	color: #fff !important; text-decoration: none; line-height: 1.3;
	transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
	box-shadow: 0 12px 24px -12px rgba(123, 44, 191, .7);
}
.b52-btn:hover { background: var(--b52-deep); border-color: var(--b52-deep); transform: translateY(-2px); color: #fff !important; }
.b52-btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .7); box-shadow: none; }
.b52-btn--ghost:hover { background: #fff; color: var(--b52-deep) !important; border-color: #fff; }
.b52-btn--light { background: #fff; color: var(--b52-deep) !important; border-color: #fff; }
.b52-btn--light:hover { background: var(--b52-soft); border-color: var(--b52-soft); color: var(--b52-deep) !important; }
.b52-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ============ 5. SHARED ============ */
.b52-eyebrow {
	display: inline-block; font-family: var(--b52-sans); font-size: 13px; font-weight: 600; letter-spacing: .22em;
	text-transform: uppercase; color: var(--b52-primary); padding-bottom: 12px !important;
}
.b52-title { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 14px; }
.b52-lead { font-size: 17px; color: var(--b52-muted); max-width: 640px; }
.b52-center { text-align: center; }
.b52-center .b52-lead { margin: 0 auto; }

/* ============ 6. HERO ============ */
.b52-hero {
	background:
		radial-gradient(1200px 500px at 85% -10%, rgba(224, 170, 255, .35), transparent 60%),
		linear-gradient(135deg, #2B0550 0%, #3C096C 45%, #6A1FB0 100%) !important;
	overflow: hidden;
}
.b52-hero .b52-eyebrow { color: var(--b52-soft); }
.b52-hero h1 { color: #fff; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.1; margin-bottom: 20px; }
.b52-hero h1 em { font-style: italic; color: var(--b52-soft); font-weight: 500; }
.b52-hero p { color: rgba(255, 255, 255, .85); font-size: 18px; max-width: 540px; }
.b52-hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; padding: 0 !important; list-style: none; }
.b52-hero-points li { color: rgba(255, 255, 255, .9); font-size: 14px; padding-left: 26px; position: relative; list-style: none; }
.b52-hero-points li:before {
	content: "✓"; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; line-height: 18px; text-align: center;
	font-size: 11px; border-radius: 50%; background: var(--b52-accent); color: #fff;
}
.b52-hero-img img {
	border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); border: 6px solid rgba(255, 255, 255, .12);
	aspect-ratio: 16 / 11; object-fit: cover; width: 100%;
}

/* ============ 7. TRUST BAR ============ */
.b52-trust { background: var(--b52-white) !important; border-bottom: 1px solid var(--b52-lav-2); }
.b52-trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.b52-trust-item { display: flex; gap: 14px; align-items: center; }
.b52-trust-ico {
	flex: 0 0 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
	background: var(--b52-lav-2); color: var(--b52-primary); font-size: 22px;
}
.b52-trust-item strong { display: block; font-family: var(--b52-serif); color: var(--b52-deep); font-size: 16px; line-height: 1.3; }
.b52-trust-item span { font-size: 13px; color: var(--b52-muted); line-height: 1.4; display: block; }

/* ============ 8. PRODUCT CARDS ============ */
.b52-products { background: var(--b52-lav) !important; }
.b52-card-col {
	background: #fff; border-radius: var(--b52-radius); overflow: hidden; box-shadow: var(--b52-shadow);
	transition: transform .25s ease, box-shadow .25s ease;
}
.b52-card-col:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -22px rgba(60, 9, 108, .5); }
.b52-card-col .et_pb_image { margin-bottom: 0 !important; }
.b52-card-col .et_pb_image_wrap { overflow: hidden; display: block; }
.b52-card-col .et_pb_image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s ease; }
.b52-card-col:hover .et_pb_image img { transform: scale(1.05); }
.b52-card-body { padding: 22px 24px 26px; }
.b52-card-body h3 { font-size: 21px; margin-bottom: 8px; }
.b52-card-body p { font-size: 14.5px; color: var(--b52-muted); line-height: 1.65; margin-bottom: 14px; }
.b52-card-link { font-weight: 600; font-size: 14px; color: var(--b52-primary); text-decoration: none; letter-spacing: .02em; }
.b52-card-link:after { content: " →"; }

/* ============ 9. ABOUT ============ */
.b52-about-img img { border-radius: 28px; box-shadow: var(--b52-shadow); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.b52-feature-list { list-style: none; padding: 0 !important; margin: 26px 0 0; display: grid; gap: 18px; }
.b52-feature-list li { list-style: none; display: flex; gap: 16px; align-items: flex-start; }
.b52-feature-list .b52-num {
	flex: 0 0 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--b52-accent), var(--b52-deep));
	color: #fff; display: grid; place-items: center; font-family: var(--b52-serif); font-weight: 700; font-size: 16px;
}
.b52-feature-list strong { display: block; font-family: var(--b52-serif); color: var(--b52-deep); font-size: 18px; margin-bottom: 2px; }
.b52-feature-list span { color: var(--b52-muted); font-size: 15px; line-height: 1.6; display: block; }

/* ============ 10. WHOLESALE CTA ============ */
.b52-cta {
	background:
		radial-gradient(600px 300px at 10% 110%, rgba(224, 170, 255, .35), transparent 60%),
		linear-gradient(120deg, #5A189A 0%, #7B2CBF 55%, #9D4EDD 100%) !important;
}
.b52-cta-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.b52-cta h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); margin-bottom: 8px; }
.b52-cta p { color: rgba(255, 255, 255, .88); font-size: 17px; max-width: 620px; margin: 0; }
.b52-cta .b52-eyebrow { color: var(--b52-soft); }

/* ============ 11. CUSTOM FOOTER ============ */
.b52-footer { background: #1E0438; color: rgba(255, 255, 255, .72); padding: 70px 0 0; font-size: 14.5px; }
.b52-footer .b52-wrap { width: 90%; max-width: 1200px; margin: 0 auto; }
.b52-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 50px; padding-bottom: 50px; }
.b52-footer img.b52-footer-logo { max-width: 220px; height: auto; background: #fff; border-radius: 14px; padding: 10px 14px; }
.b52-footer p { color: rgba(255, 255, 255, .72); margin-top: 18px; }
.b52-footer h4 { color: #fff; font-size: 17px; margin-bottom: 16px; font-family: var(--b52-serif); }
.b52-footer ul { list-style: none; padding: 0; margin: 0; }
.b52-footer li { padding: 5px 0; color: rgba(255, 255, 255, .78); }
.b52-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.b52-footer a:hover { color: var(--b52-soft); }
.b52-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; font-size: 13px; text-align: center; color: rgba(255, 255, 255, .55); }
#main-footer { display: none; }

/* ============ 12. RESPONSIVE ============ */
@media (max-width: 980px) {
	.b52-trust-grid { grid-template-columns: repeat(2, 1fr); }
	.b52-footer-grid { grid-template-columns: 1fr 1fr; }
	.b52-footer-grid > div:first-child { grid-column: 1 / -1; }
	.b52-hero-img { margin-top: 30px; }
	#top-menu li.b52-menu-cta > a { margin-top: 0; }
}
@media (max-width: 767px) {
	.b52-trust-grid { grid-template-columns: 1fr; gap: 16px; }
	.b52-footer-grid { grid-template-columns: 1fr; gap: 30px; }
	.b52-cta-box { flex-direction: column; align-items: flex-start; }
	.b52-hero p { font-size: 16px; }
	.b52-card-col { margin-bottom: 24px !important; }
}

/* ============ 13. HEADER SIZE ============ */
@media (min-width: 981px) {
	#main-header .container { width: 90%; max-width: 1200px; }
	.et_header_style_left #et-top-navigation { padding-top: 34px; }
	.et_header_style_left #et-top-navigation nav > ul > li > a { padding-bottom: 34px; }
	.et_header_style_left .logo_container { height: 100%; }
	#logo { max-height: 70% !important; }
	.et-fixed-header #logo { max-height: 62% !important; }
	.et_header_style_left .et-fixed-header #et-top-navigation { padding-top: 22px; }
	.et_header_style_left .et-fixed-header #et-top-navigation nav > ul > li > a { padding-bottom: 22px; }
	#top-menu li.b52-menu-cta > a { padding-bottom: 10px !important; }
}


/* ____________ 12. PRODUCTS DROPDOWN (category menu) ____________ */
#top-menu li ul.sub-menu { width: 290px; padding: 14px 0; border-top-color: var(--b52-primary, #7B2CBF); border-radius: 0 0 12px 12px; }
#top-menu li li { padding: 0 18px; }
#top-menu li li a { width: 254px; padding: 8px 12px; white-space: nowrap; border-radius: 8px; }
#top-menu li li a:hover { background: rgba(123, 44, 191, .08); opacity: 1; }
