/*
 Theme Name:   Divi Child – 52 Beauty Store
 Theme URI:    https://52beautystore.com/
 Description:  Nude & dusty-rose child theme for 52 Beauty Store (nail supply).
 Author:       52 Beauty Store
 Template:     Divi
 Version:      1.0.0
 Text Domain:  divi-child
*/

/* ============ 1. TOKENS ============ */
:root {
	--b52s-rose: #B5736E;
	--b52s-rose-dark: #8E524E;
	--b52s-blush: #E7C6BE;
	--b52s-nude: #EFDFD5;
	--b52s-cream: #FBF6F2;
	--b52s-cocoa: #4A2C27;
	--b52s-muted: #7C6560;
	--b52s-gold: #B8936A;
	--b52s-line: rgba(74, 44, 39, .12);
	--b52s-radius: 18px;
	--b52s-shadow: 0 24px 48px -30px rgba(74, 44, 39, .45);
	--b52s-serif: 'Cormorant Garamond', Georgia, serif;
	--b52s-sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}

/* ============ 2. BASE ============ */
body, body p, #main-content, .et_pb_text { font-family: var(--b52s-sans); color: var(--b52s-muted); font-weight: 400; }
body { font-size: 16px; line-height: 1.7; background: #fff; }
h1, h2, h3, h4, h5, h6, .et_pb_post .entry-title, .entry-title { font-family: var(--b52s-serif); color: var(--b52s-cocoa); font-weight: 600; letter-spacing: -.005em; }
a { color: var(--b52s-rose); }
a:hover { color: var(--b52s-rose-dark); }
::selection { background: var(--b52s-blush); color: var(--b52s-cocoa); }

/* ============ 3. HEADER ============ */
#top-header { background: var(--b52s-blush) !important; }
#main-header { background: rgba(255, 255, 255, .97); box-shadow: 0 1px 0 var(--b52s-line); }
#main-header .container { width: 90%; max-width: 1240px; }
#logo { max-height: 78%; }
.et_header_style_left #et-top-navigation, .et_header_style_split #et-top-navigation { padding-top: 34px; }
#top-menu li { padding-right: 26px; }
#top-menu a, .et_mobile_menu a { font-family: var(--b52s-sans); font-size: 15px; font-weight: 500; color: var(--b52s-cocoa); letter-spacing: .01em; }
#top-menu li.current-menu-item > a, #top-menu li.current-menu-ancestor > a, #top-menu a:hover { color: var(--b52s-rose) !important; opacity: 1; }
#top-menu .b52s-menu-cta > a { background: var(--b52s-cocoa); color: #fff !important; padding: 10px 18px !important; border-radius: 999px; }
#top-menu .b52s-menu-cta > a:hover { background: var(--b52s-rose); }
#et_search_icon:before { color: var(--b52s-cocoa); }
.et_mobile_menu { border-top-color: var(--b52s-rose); }
.mobile_menu_bar:before { color: var(--b52s-cocoa); }

/* ============ 4. LAYOUT HELPERS ============ */
.b52s-wrap { width: 90%; max-width: 1200px; margin: 0 auto; }
.b52s-row { width: 90% !important; max-width: 1200px !important; }
.b52s-eyebrow { display: inline-block; font-family: var(--b52s-sans); font-size: 12.5px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--b52s-rose); margin-bottom: 14px; }
.b52s-title { font-size: clamp(32px, 3.6vw, 46px); line-height: 1.12; margin-bottom: 14px; }
.b52s-lead { font-size: 17px; line-height: 1.75; color: var(--b52s-muted); max-width: 640px; }
.b52s-center { text-align: center; }
.b52s-center .b52s-lead { margin: 0 auto; }
.b52s-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.b52s-center .b52s-btns { justify-content: center; }
.b52s-btn { display: inline-block; padding: 14px 28px; border-radius: 999px; background: var(--b52s-cocoa); color: #fff !important; font-weight: 500; font-size: 15px; letter-spacing: .04em; text-decoration: none; transition: background .25s ease, transform .25s ease; }
.b52s-btn:hover { background: var(--b52s-rose); transform: translateY(-2px); }
.b52s-btn--ghost { background: transparent; color: var(--b52s-cocoa) !important; box-shadow: inset 0 0 0 1.5px var(--b52s-cocoa); }
.b52s-btn--ghost:hover { background: var(--b52s-cocoa); color: #fff !important; }
.b52s-link { font-weight: 600; font-size: 14.5px; color: var(--b52s-rose); text-decoration: none; letter-spacing: .03em; }
.b52s-link:after { content: " \2192"; transition: margin .2s ease; }
.b52s-link:hover:after { margin-left: 4px; }

/* ============ 5. HERO ============ */
.b52s-hero { background: radial-gradient(1200px 500px at 50% -10%, #fff 0%, var(--b52s-cream) 55%, var(--b52s-nude) 100%); padding: 70px 0 60px !important; }
.b52s-hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; margin-bottom: 18px; }
.b52s-hero h1 em { font-style: italic; color: var(--b52s-rose); }
.b52s-hero-points, .b52s-steps, .b52s-quote-list, .b52s-footer ul { list-style: none !important; }
.b52s-hero-points li, .b52s-steps li, .b52s-quote-list li { list-style: none !important; }
.b52s-hero-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; list-style: none; padding: 0 !important; margin-top: 26px; font-size: 14px; color: var(--b52s-cocoa); }
.b52s-hero-points li:before { content: "\2726"; color: var(--b52s-gold); margin-right: 8px; }
.b52s-banner-wide .et_pb_image_wrap { border-radius: 24px; overflow: hidden; box-shadow: var(--b52s-shadow); display: block; }
.b52s-banner-wide img { width: 100%; transition: transform .6s ease; }
.b52s-banner-wide:hover img { transform: scale(1.02); }

/* ============ 6. SEASONAL EDITS ============ */
.b52s-edits { background: #fff; padding: 80px 0 70px !important; }
.b52s-edit-col .et_pb_image { margin-bottom: 16px !important; }
.b52s-edit-col .et_pb_image_wrap { display: block; border-radius: var(--b52s-radius); overflow: hidden; box-shadow: var(--b52s-shadow); }
.b52s-edit-col .et_pb_image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s ease; }
.b52s-edit-col:hover .et_pb_image img { transform: scale(1.04); }
.b52s-edit-cap h3 { font-size: 22px; margin-bottom: 4px; padding-bottom: 0; }
.b52s-edit-cap p { font-size: 14.5px; line-height: 1.6; margin-bottom: 8px; padding-bottom: 0; }

/* ============ 7. CATEGORIES ============ */
.b52s-cats { background: var(--b52s-cream); padding: 80px 0 !important; }
.b52s-cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 10px; }
.b52s-cat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--b52s-line); border-radius: var(--b52s-radius); padding: 26px 22px 24px; position: relative; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.b52s-cat:hover { transform: translateY(-6px); box-shadow: var(--b52s-shadow); border-color: var(--b52s-blush); }
.b52s-cat-num { font-family: var(--b52s-serif); font-size: 34px; font-style: italic; color: var(--b52s-blush); line-height: 1; margin-bottom: 14px; }
.b52s-cat h3 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; padding-bottom: 0; }
.b52s-cat p { flex: 1; font-size: 14px; line-height: 1.6; margin-bottom: 16px; padding-bottom: 0; }
.b52s-cat .b52s-link:before { content: ""; position: absolute; inset: 0; }

/* ============ 8. GUIDES ============ */
.b52s-guides { background: #fff; padding: 80px 0 !important; }
.b52s-guide-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 10px; }
.b52s-guide { position: relative; display: flex; flex-direction: column; border-radius: var(--b52s-radius); overflow: hidden; background: #fff; border: 1px solid var(--b52s-line); transition: transform .3s ease, box-shadow .3s ease; }
.b52s-guide:hover { transform: translateY(-6px); box-shadow: var(--b52s-shadow); }
.b52s-guide > p { margin: 0; padding: 0; line-height: 0; }
.b52s-guide img { width: 100%; height: auto !important; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.b52s-guide > p, .b52s-cat > p:empty { display: contents; }
.b52s-guide-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 22px; }
.b52s-guide-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--b52s-gold); margin-bottom: 6px; }
.b52s-guide h3 { font-size: 20px; line-height: 1.25; margin-bottom: 8px; padding-bottom: 0; }
.b52s-guide-body p { flex: 1; font-size: 14px; line-height: 1.6; margin-bottom: 14px; padding-bottom: 0; }
.b52s-guide .b52s-link:before { content: ""; position: absolute; inset: 0; }
.b52s-guide-body br, .b52s-guide-body p:empty, .b52s-guide > p:empty, .b52s-cat br, .b52s-cat p:empty { display: none; }

/* ============ 9. STORY ============ */
.b52s-story { background: linear-gradient(180deg, var(--b52s-nude) 0%, var(--b52s-cream) 100%); padding: 90px 0 !important; }
.b52s-steps { list-style: none; padding: 0 !important; margin-top: 26px; }
.b52s-steps li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--b52s-line); }
.b52s-steps li:last-child { border-bottom: 1px solid var(--b52s-line); }
.b52s-steps strong { display: block; font-family: var(--b52s-serif); font-size: 21px; color: var(--b52s-cocoa); font-weight: 600; }
.b52s-steps span.b52s-step-n { flex: 0 0 34px; font-family: var(--b52s-serif); font-style: italic; font-size: 26px; color: var(--b52s-rose); line-height: 1.1; }
.b52s-quote { background: #fff; border-radius: 24px; padding: 42px 38px; box-shadow: var(--b52s-shadow); position: relative; }
.b52s-quote:before { content: "\201C"; position: absolute; top: -18px; left: 30px; font-family: var(--b52s-serif); font-size: 110px; color: var(--b52s-blush); line-height: 1; }
.b52s-quote p.b52s-quote-text { font-family: var(--b52s-serif); font-size: 26px; line-height: 1.4; color: var(--b52s-cocoa); font-style: italic; }
.b52s-quote-list { list-style: none; padding: 0 !important; margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; font-size: 14.5px; color: var(--b52s-cocoa); }
.b52s-quote-list li:before { content: "\2726"; color: var(--b52s-rose); margin-right: 8px; }

/* ============ 10. CTA BAND ============ */
.b52s-cta { background: var(--b52s-cocoa); padding: 70px 0 !important; }
.b52s-cta-box { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.b52s-cta h2 { color: #fff; font-size: clamp(30px, 3.2vw, 42px); margin-bottom: 8px; }
.b52s-cta p { color: rgba(255, 255, 255, .78); max-width: 620px; }
.b52s-cta .b52s-eyebrow { color: var(--b52s-blush); }
.b52s-cta .b52s-btn { background: var(--b52s-blush); color: var(--b52s-cocoa) !important; }
.b52s-cta .b52s-btn:hover { background: #fff; }
.b52s-cta .b52s-btn--ghost { background: transparent; color: #fff !important; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }

/* ============ 11. FOOTER ============ */
#main-footer { display: none !important; }
.b52s-footer { background: var(--b52s-nude); color: var(--b52s-muted); padding: 72px 0 0; font-size: 15px; }
.b52s-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr .9fr; gap: 44px; padding-bottom: 54px; }
.b52s-footer-logo { width: 240px; height: auto; margin-bottom: 18px; }
.b52s-footer-name { font-family: var(--b52s-serif); font-size: 28px; color: var(--b52s-cocoa); }
.b52s-footer h4 { font-family: var(--b52s-serif); font-size: 21px; color: var(--b52s-cocoa); margin-bottom: 16px; padding-bottom: 0; }
.b52s-footer ul { list-style: none; padding: 0 !important; margin: 0; }
.b52s-footer li { margin-bottom: 10px; line-height: 1.45; }
.b52s-footer a { color: var(--b52s-cocoa); text-decoration: none; transition: color .2s ease; }
.b52s-footer a:hover { color: var(--b52s-rose); }
.b52s-footer-posts a { font-size: 14.5px; }
.b52s-footer-bottom { border-top: 1px solid var(--b52s-line); padding: 20px 0; font-size: 13.5px; text-align: center; color: var(--b52s-muted); }

/* ============ 12. BLOG / ARCHIVE TOUCHES ============ */
.et_pb_post { border-bottom: 1px solid var(--b52s-line); padding-bottom: 34px; }
.et_pb_post .entry-title a:hover { color: var(--b52s-rose); }
.post-meta a { color: var(--b52s-rose); }
#sidebar h4.widgettitle, .widget_block h2 { font-family: var(--b52s-serif); color: var(--b52s-cocoa); }
#main-content .container:before { background: var(--b52s-line); }

/* ============ 13. RESPONSIVE ============ */
@media (max-width: 1100px) {
	.b52s-cat-grid { grid-template-columns: repeat(3, 1fr); }
	.b52s-guide-grid { grid-template-columns: repeat(2, 1fr); }
	.b52s-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
	.b52s-hero { padding: 50px 0 40px !important; }
	.b52s-edits, .b52s-cats, .b52s-guides, .b52s-story { padding: 60px 0 !important; }
}
@media (max-width: 640px) {
	.b52s-cat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.b52s-cat { padding: 20px 16px; }
	.b52s-guide-grid { grid-template-columns: 1fr; }
	.b52s-quote-list { grid-template-columns: 1fr; }
	.b52s-footer-grid { grid-template-columns: 1fr; gap: 30px; }
	.b52s-quote { padding: 32px 24px; }
}
