/*
Theme Name: ZagCare
Theme URI: https://zagcare.store
Author: ZagCare
Description: Fast, lightweight theme built for Elementor sales pages. Includes Blank Canvas and Minimal Header sales templates, a floating WhatsApp button, announcement bar, sticky header, header CTA button and WooCommerce support. Customize everything under Appearance → Customize → ZagCare Theme.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
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: zagcare
Tags: e-commerce, one-column, custom-logo, custom-menu, custom-colors, full-width-template
*/

:root {
	--zc-primary: #0e7c66;
	--zc-accent: #ff7a00;
	--zc-text: #1f2937;
	--zc-muted: #6b7280;
	--zc-bg: #ffffff;
	--zc-soft: #f5f7f6;
	--zc-border: #e5e7eb;
	--zc-radius: 10px;
	--zc-container: 1200px;
	--zc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base (kept minimal so pasted code isn't overridden) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--zc-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--zc-text);
	background: var(--zc-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; }
iframe { max-width: 100%; }
a { color: var(--zc-primary); }

.zc-container { width: 100%; max-width: var(--zc-container); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 10px; top: 10px; z-index: 100000; padding: 12px 18px;
	background: #fff; color: var(--zc-text); border-radius: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.2);
}

/* ---------- Buttons ---------- */
.zc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--zc-accent); color: #fff; padding: 12px 22px;
	border-radius: var(--zc-radius); font-weight: 700; font-size: 15px; line-height: 1.2;
	text-decoration: none; border: 0; cursor: pointer;
	transition: transform .15s ease, filter .15s ease;
}
.zc-btn:hover, .zc-btn:focus { filter: brightness(.92); transform: translateY(-1px); color: #fff; }

/* ---------- Announcement bar ---------- */
.zc-topbar {
	background: var(--zc-primary); color: #fff; text-align: center;
	font-size: 14px; font-weight: 600; padding: 8px 16px;
}
.zc-topbar a { color: #fff; text-decoration: underline; }

/* ---------- Header ---------- */
.zc-header { background: #fff; border-bottom: 1px solid var(--zc-border); position: relative; z-index: 100; }
.zc-header.is-sticky { position: sticky; top: 0; }
.admin-bar .zc-header.is-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .zc-header.is-sticky { top: 46px; } }
@media (max-width: 600px) { .admin-bar .zc-header.is-sticky { top: 0; } }

.zc-header__inner { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.zc-brand { margin-right: auto; font-weight: 800; font-size: 22px; line-height: 1; }
.zc-brand a { color: var(--zc-text); text-decoration: none; }
.custom-logo { max-height: 50px; width: auto; display: block; }

.zc-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 26px; }
.zc-nav li { position: relative; }
.zc-nav a { color: var(--zc-text); text-decoration: none; font-weight: 500; }
.zc-nav a:hover, .zc-nav .current-menu-item > a { color: var(--zc-primary); }
.zc-nav .sub-menu {
	display: none; position: absolute; top: 100%; left: -16px; min-width: 210px;
	flex-direction: column; gap: 0; background: #fff; border: 1px solid var(--zc-border);
	border-radius: 8px; padding: 8px 0; box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.zc-nav .sub-menu a { display: block; padding: 8px 16px; }
.zc-nav li:hover > .sub-menu, .zc-nav li:focus-within > .sub-menu { display: flex; }

.zc-cart { position: relative; color: var(--zc-text); display: inline-flex; text-decoration: none; }
.zc-cart svg { width: 24px; height: 24px; }
.zc-cart__count {
	position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px;
	border-radius: 9px; background: var(--zc-accent); color: #fff;
	font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

.zc-menu-toggle {
	display: none; align-items: center; justify-content: center;
	width: 42px; height: 42px; border: 1px solid var(--zc-border); border-radius: 8px;
	background: #fff; color: var(--zc-text); cursor: pointer; padding: 0;
}
.zc-menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
	.zc-menu-toggle { display: inline-flex; }
	.zc-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--zc-border); padding: 8px 20px 16px;
		box-shadow: 0 10px 20px rgba(0,0,0,.06);
	}
	.zc-nav.is-open { display: block; }
	.zc-nav ul { flex-direction: column; gap: 0; }
	.zc-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--zc-border); }
	.zc-nav .sub-menu { display: flex; position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; }
	.zc-header__cta { padding: 10px 14px; font-size: 14px; }
}
@media (max-width: 420px) { .zc-header__cta { display: none; } }

/* Minimal header (sales pages) */
.zc-header--minimal .zc-header__inner { justify-content: center; min-height: 64px; }
.zc-header--minimal .zc-brand { margin: 0; }

/* ---------- Content (blog, normal pages) ---------- */
.zc-main { padding: 48px 0 64px; }
.zc-content { max-width: 780px; margin: 0 auto; }
.zc-content h1, .zc-content h2, .zc-content h3, .zc-content h4 { line-height: 1.25; margin: 1.6em 0 .6em; }
.zc-content > *:first-child { margin-top: 0; }
.zc-content p { margin: 0 0 1.2em; }
.zc-content img { border-radius: var(--zc-radius); }
.zc-content blockquote {
	margin: 1.5em 0; padding: 16px 22px; border-left: 4px solid var(--zc-primary);
	background: var(--zc-soft); border-radius: 0 8px 8px 0;
}
.zc-page-title, .entry-title { font-size: clamp(28px, 4vw, 40px); line-height: 1.2; margin: 0 0 16px; }
.zc-meta { color: var(--zc-muted); font-size: 14px; margin-bottom: 24px; }
.zc-featured { margin: 0 0 28px; }
.zc-featured img { border-radius: var(--zc-radius); width: 100%; }

.zc-content input[type="text"], .zc-content input[type="email"], .zc-content input[type="url"],
.zc-content textarea, .search-form input[type="search"] {
	width: 100%; padding: 12px 14px; border: 1px solid var(--zc-border);
	border-radius: 8px; font: inherit; background: #fff;
}
.zc-content input[type="submit"], .search-form button, .search-form input[type="submit"] {
	background: var(--zc-primary); color: #fff; border: 0; border-radius: 8px;
	padding: 12px 20px; font: inherit; font-weight: 700; cursor: pointer;
}

/* Post grid */
.zc-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.zc-card { background: #fff; border: 1px solid var(--zc-border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.zc-card__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.zc-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.zc-card__title { font-size: 20px; line-height: 1.3; margin: 0 0 8px; }
.zc-card__title a { color: var(--zc-text); text-decoration: none; }
.zc-card__title a:hover { color: var(--zc-primary); }
.zc-card__excerpt { color: var(--zc-muted); font-size: 15px; flex: 1; }
.zc-card__excerpt p { margin: 0 0 14px; }
.zc-card__more { font-weight: 700; text-decoration: none; }

.navigation.pagination { margin-top: 40px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.page-numbers {
	display: inline-block; min-width: 42px; padding: 9px 14px; text-align: center;
	border: 1px solid var(--zc-border); border-radius: 8px; text-decoration: none; color: var(--zc-text);
}
.page-numbers.current { background: var(--zc-primary); border-color: var(--zc-primary); color: #fff; }
.post-navigation .nav-links { justify-content: space-between; margin-top: 40px; }

.zc-404 { text-align: center; padding: 40px 0; }
.zc-404 .zc-404__code { font-size: 96px; font-weight: 800; color: var(--zc-primary); line-height: 1; }

/* Comments */
.comments-area { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--zc-border); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 24px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--zc-border); }

/* ---------- Elementor ---------- */
.zc-elementor .zc-main { padding: 0; }
.zc-canvas, .zc-sales-minimal { background: #fff; }
.elementor-widget-html { width: 100%; }
.elementor-widget-html .elementor-widget-container { overflow-x: clip; }

/* ---------- Footer ---------- */
.zc-footer { background: #0f172a; color: #cbd5e1; padding: 40px 0; font-size: 14px; }
.zc-footer a { color: #e2e8f0; text-decoration: none; }
.zc-footer a:hover { color: #fff; text-decoration: underline; }
.zc-footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.zc-footer__menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }

.zc-footer--minimal { background: transparent; color: var(--zc-muted); border-top: 1px solid var(--zc-border); padding: 24px 0; }
.zc-footer--minimal a { color: var(--zc-muted); }
.zc-footer--minimal a:hover { color: var(--zc-text); }
.zc-footer--minimal .zc-footer__inner { justify-content: center; text-align: center; flex-direction: column; gap: 10px; }

/* ---------- Floating WhatsApp ---------- */
.zc-wa {
	position: fixed; bottom: 18px; z-index: 9999;
	width: 58px; height: 58px; border-radius: 50%; background: #25d366;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: transform .2s ease;
	animation: zc-wa-pulse 2.4s infinite;
}
.zc-wa--right { right: 18px; }
.zc-wa--left { left: 18px; }
.zc-wa:hover { transform: scale(1.08); }
.zc-wa svg { width: 32px; height: 32px; fill: #fff; }
@keyframes zc-wa-pulse {
	0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55), 0 6px 20px rgba(0,0,0,.25); }
	70% { box-shadow: 0 0 0 16px rgba(37,211,102,0), 0 6px 20px rgba(0,0,0,.25); }
	100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 6px 20px rgba(0,0,0,.25); }
}
@media (prefers-reduced-motion: reduce) { .zc-wa { animation: none; } html { scroll-behavior: auto; } }

/* ---------- WooCommerce ---------- */
.zc-woo { padding: 40px 0 64px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce a.button.alt, .woocommerce button.button.alt {
	background: var(--zc-accent); color: #fff; border-radius: 8px; font-weight: 700; padding: 12px 20px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
	background: var(--zc-accent); color: #fff; filter: brightness(.92);
}
.woocommerce span.onsale { background: var(--zc-accent); }
.woocommerce ul.products li.product .price, .woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--zc-primary); font-weight: 700; }
