/* Dark site-wide styling matching custom homepage */
body {
	background: #0d0d0f;
}

body.custom-home-page header#masthead,
body.custom-home-page .site-header,
body.custom-home-page .main-header-bar,
body.custom-home-page .main-header-bar-wrap,
body.custom-home-page .ast-primary-header-bar,
body.custom-home-page .site-footer {
	display: none !important;
	height: 0 !important;
	min-height: 0 !important;
	overflow: hidden !important;
	padding: 0 !important;
	margin: 0 !important;
}

.custom-home-page {
	--page-bg: #0d0d0f;
	--surface: #1c1d21;
	--surface-alt: #1b1b1f;
	--card-border: #2b2c31;
	--text-primary: #d8d8dc;
	--text-secondary: #9a9aa3;
	--accent: #f0f0f0;
	--accent-strong: #d3d4d8;
	--muted: #2a2b31;
	background: var(--page-bg);
	color: var(--text-primary);
	font-family: 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
}

.custom-home-page .site {
	background: var(--page-bg);
	max-width: none;
	margin: 0;
	padding: 0;
}

.custom-home-page #content {
	padding: 0;
	margin: 0;
}

.custom-home-page .site-content .ast-container {
	max-width: none;
	padding: 0;
	width: 100%;
}

.custom-home-page a {
	color: var(--accent);
	text-decoration: none;
}

.custom-home-page a:hover {
	color: #ffffff;
}

.custom-home-page .top-nav {
	position: sticky;
	top: 0;
	z-index: 40;
	background: #0e0e11e6;
	backdrop-filter: blur(8px);
	border-bottom: 1px solid #1d1e24;
}

.custom-home-page .top-nav-inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.custom-home-page .brand {
	font-weight: 700;
	color: var(--accent);
	font-size: 16px;
}

.custom-home-page .nav-links {
	display: flex;
	gap: 16px;
}

.custom-home-page .nav-links a {
	color: var(--accent-strong);
	font-weight: 500;
	font-size: 13px;
	padding: 6px 10px;
	border-radius: 6px;
}

.custom-home-page .nav-links a:hover,
.custom-home-page .nav-links a:focus {
	background: #1f2026;
	color: #ffffff;
}

.custom-home-page .hero {
	position: relative;
	background: radial-gradient(circle at 20% 20%, #1a1b21 0, rgba(26, 27, 33, 0) 45%), radial-gradient(circle at 80% 0%, #23242b 0, rgba(35, 36, 43, 0) 40%), linear-gradient(180deg, #111113 0%, #0d0d0f 100%);
	overflow: hidden;
	padding: 24px 24px 32px;
}

.custom-home-page .hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: url('https://images.unsplash.com/photo-1523275335684-37898b6baf30?auto=format&fit=crop&w=1800&q=60') center/cover no-repeat;
	opacity: 0.12;
	pointer-events: none;
	mix-blend-mode: screen;
}

.custom-home-page .hero-inner {
	position: relative;
	max-width: 1320px;
	margin: 0 auto;
	z-index: 1;
}

.custom-home-page .hero-grid {
	background: rgba(24, 24, 28, 0.85);
	border: 1px solid #2f3036;
	border-radius: 14px;
	padding: 20px 22px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
	max-width: 1140px;
	margin: 0 auto;
	backdrop-filter: blur(6px);
}

.custom-home-page .hero-grid .hero-search-form {
	display: flex;
	gap: 14px;
	align-items: center;
	width: 100%;
	flex-wrap: wrap;
	justify-content: space-between;
}

.custom-home-page .hero-grid input[type="search"] {
	flex: 1 1 420px;
	background: #131316;
	color: var(--text-primary);
	border: 1px solid #2a2b31;
	border-radius: 8px;
	padding: 14px 14px;
	font-size: 15.5px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	min-height: 48px;
}

.custom-home-page .hero-grid input::placeholder {
	color: #7f8087;
}

.custom-home-page .hero-grid select {
	flex: 0 0 220px;
	background: #131316;
	color: var(--text-primary);
	border: 1px solid #2c2d33;
	border-radius: 8px;
	padding: 14px 12px;
	font-size: 14.5px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	min-height: 48px;
}

.custom-home-page .hero-grid input:focus,
.custom-home-page .hero-grid select:focus {
	outline: none;
	border-color: #36c2a5;
	box-shadow: 0 0 0 3px rgba(54, 194, 165, 0.18);
}

.custom-home-page .hero-grid button[type="submit"] {
	background: linear-gradient(90deg, #24b39a 0%, #1b8f86 100%);
	color: #e7f6f4;
	border: none;
	border-radius: 8px;
	padding: 14px 24px;
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: opacity 0.15s ease, transform 0.15s ease;
	flex: 0 0 auto;
	min-height: 48px;
	letter-spacing: 0.01em;
}

.custom-home-page .hero-grid button[type="submit"]:hover {
	opacity: 0.95;
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(36, 179, 154, 0.26);
}

.custom-home-page .hero-grid button[type="submit"]:active {
	transform: translateY(0);
}

/* Remove unused filter chips below the hero */
/* Hide legacy filter chips/pills if they render */
.custom-home-page .hero-filters,
.custom-home-page .filter-tag,
.custom-home-page .category-pill,
.hero-filters,
.filter-tag,
.category-pill {
	display: none !important;
}

.custom-home-page .section {
	max-width: 1320px;
	margin: 0 auto;
	padding: 24px;
}

.custom-home-page .section h2 {
	font-size: 19px;
	font-weight: 700;
	margin: 10px 0 18px;
	color: var(--accent);
}

.custom-home-page .product-grid,
.shop-page .product-grid,
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
}

.custom-home-page .product-card,
.shop-page .product-card,
.woocommerce ul.products li.product {
	background: linear-gradient(180deg, #1b1c20 0%, #18191d 100%);
	border: 1px solid var(--card-border);
	border-radius: 12px;
	padding: 16px;
	min-height: 340px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 14px;
	transition: all 0.2s ease;
	overflow: hidden;
	text-decoration: none !important;
}

.custom-home-page .product-card:hover {
	transform: translateY(-2px);
	border-color: #3a3b41;
}

.custom-home-page .product-card .fav {
	position: absolute;
	right: 10px;
	top: 10px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #242529;
	display: grid;
	place-items: center;
	color: var(--accent-strong);
	font-size: 14px;
}

.custom-home-page .product-thumb,
.shop-page .product-thumb {
	height: 180px;
	border-radius: 10px;
	background: #1a1b1e;
	border: 1px solid #2a2b2e;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

.custom-home-page .product-thumb img,
.custom-home-page .product-thumb .thumb-img {
	max-height: 100%;
	max-width: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	padding: 5px;
	filter: brightness(0.95);
	transition: transform 0.3s ease;
}

.custom-home-page .product-card:hover .product-thumb img {
	transform: scale(1.05);
}

.custom-home-page .product-title,
.woocommerce-loop-product__title {
	font-size: 13px !important;
	color: var(--text-primary) !important;
	font-weight: 500 !important;
	line-height: 1.4 !important;
	margin: 0 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	height: 36px;
}

.custom-home-page .price,
.woocommerce ul.products li.product .price {
	font-weight: 700;
	color: var(--accent) !important;
	font-size: 14px;
	margin-top: auto;
}

.custom-home-page .buy,
.woocommerce ul.products li.product .button {
	margin-top: auto;
	background: #1f2025;
	border: 1px solid #2f3036;
	color: var(--accent-strong);
	border-radius: 8px;
	padding: 10px 12px;
	text-align: center;
	font-weight: 600;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}

.custom-home-page .footer {
	background: #0f1013;
	border-top: 1px solid #1f2026;
	margin-top: 36px;
	color: var(--text-secondary);
}

.custom-home-page .footer-inner {
	max-width: 1320px;
	margin: 0 auto;
	padding: 26px 24px 18px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 18px;
}

.custom-home-page .footer h4 {
	margin: 0 0 10px;
	color: var(--accent);
	font-weight: 700;
	font-size: 13px;
}

.custom-home-page .footer p,
.custom-home-page .footer li {
	margin: 0 0 8px;
	line-height: 1.6;
	font-size: 12px;
}

.custom-home-page .footer ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.custom-home-page .footer-bottom {
	background: #1b8f86;
	padding: 10px 0;
	text-align: center;
	font-size: 11px;
	color: #e7f6f4;
}

/* Ensure all default footer blocks stay hidden on dark layout pages */
body.custom-home-page .site-footer,
body.custom-home-page #colophon,
body.custom-home-page .ast-footer-overlay,
body.custom-home-page .ast-footer-wrap,
body.custom-home-page .footer-adv,
body.custom-home-page .ast-small-footer {
	display: none !important;
	height: 0 !important;
	overflow: hidden !important;
	padding: 0 !important;
	margin: 0 !important;
}

@media (max-width: 900px) {
	.custom-home-page .hero-grid {
		flex-direction: column;
	}

	.custom-home-page .hero {
		padding: 20px 16px 28px;
	}

	.custom-home-page .section {
		padding: 18px 16px;
	}
}

/* Floating Buttons Optimization (Cart & Scroll to Top) */
#ast-scroll-top,
.taiowc-content {
	position: fixed !important;
	right: 30px !important;
	border-radius: 14px !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
	border: 1px solid rgba(255, 255, 255, 0.08) !important;
	background: rgba(28, 29, 33, 0.9) !important;
	backdrop-filter: blur(12px) !important;
	-webkit-backdrop-filter: blur(12px) !important;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
}

#ast-scroll-top {
	bottom: 30px !important;
	width: 50px !important;
	height: 50px !important;
	z-index: 1000 !important;
}

.taiowc-content {
	bottom: 95px !important;
	/* Stacked above scroll to top */
	width: 50px !important;
	height: 50px !important;
	z-index: 1001 !important;
}

/* Clean up internal plugin styles for a custom look */
.taiowc-cart-item {
	background: transparent !important;
	backdrop-filter: none !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
}

#ast-scroll-top:hover,
.taiowc-content:hover {
	transform: translateY(-6px) scale(1.06) !important;
	background: rgba(35, 36, 42, 0.95) !important;
	border-color: rgba(255, 255, 255, 0.2) !important;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5) !important;
}

/* Icon Styling */
#ast-scroll-top .ast-icon.icon-arrow svg {
	width: 22px !important;
	height: 22px !important;
	fill: var(--accent) !important;
	margin: 0 !important;
}

.taiowc-icon svg {
	width: 24px !important;
	height: 24px !important;
	stroke: var(--accent) !important;
}

/* Cart Counter Refinement */
.cart-count-item {
	background: linear-gradient(135deg, #24b39a 0%, #1b8f86 100%) !important;
	color: #ffffff !important;
	border: 2px solid #1c1d21 !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	width: 22px !important;
	height: 22px !important;
	top: -8px !important;
	right: -8px !important;
	left: auto !important;
	border-radius: 50% !important;
	box-shadow: 0 2px 8px rgba(36, 179, 154, 0.4) !important;
}

/* Specific fix for Astra arrow rotation */
#ast-scroll-top .ast-icon.icon-arrow svg {
	transform: rotate(180deg) !important;
	/* Ensure arrow points UP */
}

/* --- Stylized Contact Page --- */

body.custom-home-page.page-template-template-contact #primary,
body.custom-home-page.page-template-template-contact #content {
	background: #f4efea !important;
	padding: 0 !important;
	margin: 0 !important;
}

body.custom-home-page .custom-contact-container {
	background: #f4efea !important;
	/* Light cream background matching the reference */
	padding: 60px 0 !important;
	min-height: 100vh !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	color: #000 !important;
}

body.custom-home-page .contact-split-layout {
	display: flex !important;
	max-width: 800px !important;
	/* Strictly enforced 800px width */
	width: 100% !important;
	margin: 0 auto !important;
	background: #f4efea !important;
	gap: 0 !important;
}

body.custom-home-page .contact-image-side {
	flex: 0.7 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 40px !important;
}

body.custom-home-page .contact-image-side img.contact-main-image {
	max-width: 180px !important;
	/* Smaller logo as requested */
	height: auto !important;
	object-fit: contain !important;
}

body.custom-home-page .contact-content-side {
	flex: 1.3 !important;
	padding: 40px 20px 40px 40px !important;
	display: flex !important;
	flex-direction: column !important;
}

body.custom-home-page .contact-header .contact-title {
	font-family: 'Poppins', sans-serif !important;
	font-size: 56px !important;
	/* Adjusted size */
	font-weight: 700 !important;
	margin: 0 0 30px 0 !important;
	color: #000 !important;
	line-height: 1 !important;
}

body.custom-home-page .contact-form-wrapper {
	display: grid !important;
	grid-template-columns: 1fr 180px !important;
	gap: 40px !important;
	border-top: 1px solid #000 !important;
	border-left: 1px solid #000 !important;
	padding: 30px 0 0 30px !important;
	position: relative !important;
}

body.custom-home-page .stylized-contact-form {
	display: flex !important;
	flex-direction: column !important;
	gap: 30px !important;
}

body.custom-home-page .form-group {
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
}

body.custom-home-page .form-group label {
	font-size: 18px !important;
	font-weight: 500 !important;
	color: #000 !important;
}

body.custom-home-page .form-group input,
body.custom-home-page .form-group textarea {
	background: transparent !important;
	border: none !important;
	border-bottom: 2px solid #000 !important;
	color: #000 !important;
	padding: 5px 0 !important;
	font-size: 16px !important;
	border-radius: 0 !important;
	outline: none !important;
	width: 100% !important;
	box-shadow: none !important;
}

body.custom-home-page .form-group input:focus,
body.custom-home-page .form-group textarea:focus {
	border-bottom-color: #24b39a !important;
	/* Use theme teal for focus */
}

body.custom-home-page .form-footer {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	margin-top: 20px !important;
}

body.custom-home-page .contact-submit-btn {
	background: #000 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 50px !important;
	padding: 15px 45px !important;
	font-size: 18px !important;
	font-weight: 500 !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
}

body.custom-home-page .contact-submit-btn:hover {
	background: #24b39a !important;
	/* Theme teal on hover */
	transform: translateY(-2px) !important;
}

body.custom-home-page .contact-social-links {
	display: flex !important;
	gap: 25px !important;
	margin-top: 20px !important;
	justify-content: center !important;
}

body.custom-home-page .info-block p i {
	display: inline-block !important;
	margin-right: 10px !important;
	color: #24b39a !important;
}

body.custom-home-page .social-icon {
	display: inline-block !important;
	font-size: 44px !important;
	color: #000000 !important;
	transition: all 0.3s ease !important;
}

body.custom-home-page .social-icon i {
	display: inline-block !important;
}

body.custom-home-page .social-icon:hover {
	color: #24b39a !important;
	transform: scale(1.1) !important;
}

body.custom-home-page .contact-info-sidebar {
	display: flex !important;
	flex-direction: column !important;
	gap: 40px !important;
}

body.custom-home-page .info-block h3 {
	font-size: 22px !important;
	font-weight: 600 !important;
	margin: 0 0 10px 0 !important;
	color: #000 !important;
}

body.custom-home-page .info-block p,
body.custom-home-page .info-block a {
	font-size: 16px !important;
	color: #444 !important;
	text-decoration: none !important;
}

body.custom-home-page .info-block a:hover {
	color: #24b39a !important;
}

/* Font Awesome fallbacks or ensured loading */

@media (max-width: 992px) {
	.contact-split-layout {
		flex-direction: column;
	}

	.contact-content-side {
		padding: 40px 20px;
	}

	.contact-form-wrapper {
		grid-template-columns: 1fr;
		padding-left: 0;
		border-left: none;
	}

	.contact-header .contact-title {
		font-size: 48px;
		margin-bottom: 30px;
	}
}

/* Contact Form Messages */
body.custom-home-page .contact-form-message {
	grid-column: span 2 !important;
	margin-bottom: 20px;
	padding: 15px;
	border-radius: 8px;
	font-weight: 500;
	font-size: 14px;
	border-left: 4px solid transparent;
}

body.custom-home-page .contact-form-message.success {
	background: #e7f6f4;
	color: #1b8f86;
	border-left-color: #24b39a;
}

body.custom-home-page .contact-form-message.error {
	background: #fdf2f2;
	color: #c81e1e;
	border-left-color: #f05252;
}