/*
Theme Name: Thiệp cưới dầy dây online (child)
Template: dentvthiepcuoi_off
Description: Child theme of "Thiệp cưới dầy dây online". All project overrides live here; the parent theme stays untouched.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tomnyson
*/

/*
 * Phones: the template catalogue drops the style pill row (styles, "more" menu, occasion
 * and sort menus). Tone swatches and search stay. Two classes outrank the parent's
 * single-class display rule whatever the stylesheet order.
 */
@media (max-width: 767px) {
	.invitation-filters .invitation-filter-top {
		display: none;
	}
}

/*
 * Phones: no top header on any page; the bottom quick bar is the mobile navigation.
 * The header is sticky, so hiding it frees its space. Every parent offset for it
 * (home negative margin, hero padding, scroll-padding, sticky tops) reads --header-h,
 * which is redefined on several body classes, hence !important on both levels.
 */
@media (max-width: 767px) {
	#masthead {
		display: none;
	}

	:root,
	body {
		--header-h: 0px !important;
	}
}

/*
 * Header: "Mẫu thiệp" left the nav for an outline button beside the "create" button
 * (header.php). Same height and pill shape as the parent's floating-header CTA.
 */
.header--refined .header-account {
	display: flex;
	align-items: center;
	gap: 10px;
}

.header-account__templates {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 17px;
	border: 1.5px solid var(--brand, #b51637);
	border-radius: 999px;
	background: transparent;
	color: var(--brand, #b51637);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	text-decoration: none;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.header-account__templates:hover {
	transform: translateY(-1px);
	background: var(--brand, #b51637);
	color: var(--brand-text, #fff);
}

.header-account__templates:focus-visible {
	outline: 3px solid var(--accent, #b51637);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.header-account__templates {
		transition: none;
	}

	.header-account__templates:hover {
		transform: none;
	}
}
