/* ==========================================================================
   VisionGuard – base styles
   Most design lives in Elementor. This file only covers base typography,
   fallback header/footer and WooCommerce product card styling so the
   Elementor WooCommerce widgets look like the demo out of the box.
   ========================================================================== */

:root {
	--vg-primary: #0b5ed7;
	--vg-primary-dark: #0848a8;
	--vg-accent: #e63946;
	--vg-green: #1fa855;
	--vg-dark: #1e2227;
	--vg-text: #333333;
	--vg-muted: #666666;
	--vg-line: #e6e8eb;
	--vg-soft: #f5f7fa;
	--vg-radius: 8px;
}

*,
*::before,
*::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: "Poppins", Arial, sans-serif;
	font-size: 15px;
	line-height: 1.65;
	color: var(--vg-text);
	background: #fff;
}

a { color: var(--vg-primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--vg-primary-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4, h5, h6 { font-family: "Poppins", Arial, sans-serif; color: var(--vg-dark); line-height: 1.3; margin: 0 0 .6em; }

.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; width: 1px; word-wrap: normal !important;
}
.skip-link:focus { clip: auto; clip-path: none; height: auto; width: auto; left: 10px; top: 10px; z-index: 100000; background: #fff; padding: 10px 16px; }

.vg-container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.vg-main { padding-top: 40px; padding-bottom: 60px; }
.vg-narrow { max-width: 860px; }
.vg-page-title { font-size: 32px; }
.vg-meta { color: var(--vg-muted); font-size: 13px; margin-bottom: 16px; }
.vg-featured { margin-bottom: 24px; border-radius: var(--vg-radius); overflow: hidden; }
.vg-btn,
.vg-404 .vg-btn { display: inline-block; background: var(--vg-primary); color: #fff; padding: 11px 26px; border-radius: 5px; font-weight: 600; }
.vg-btn:hover { background: var(--vg-primary-dark); color: #fff; }
.vg-404 { text-align: center; }
.vg-404 h1 { font-size: 110px; color: var(--vg-primary); margin: 0; }

/* Post grid (fallback) */
.vg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vg-card { border: 1px solid var(--vg-line); border-radius: var(--vg-radius); overflow: hidden; background: #fff; }
.vg-card__thumb img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.vg-card__body { padding: 18px; }
.vg-card__title { font-size: 18px; }
.vg-card__title a { color: var(--vg-dark); }
@media (max-width: 900px) { .vg-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .vg-grid { grid-template-columns: 1fr; } }

/* ---------- Fallback header / footer (only when no Elementor template) ---------- */
.vg-header { border-bottom: 1px solid var(--vg-line); background: #fff; }
.vg-header__inner { display: flex; align-items: center; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.vg-logo img { max-height: 56px; width: auto; }
.vg-logo__text { font-size: 24px; font-weight: 700; color: var(--vg-dark); }
.vg-search { flex: 1; max-width: 560px; }
.vg-search .search-form { display: flex; }
.vg-search .search-field { flex: 1; padding: 10px 14px; border: 2px solid var(--vg-primary); border-radius: 5px 0 0 5px; font-family: inherit; }
.vg-search .search-submit { background: var(--vg-primary); color: #fff; border: 0; padding: 0 20px; border-radius: 0 5px 5px 0; cursor: pointer; font-family: inherit; }
.vg-header__icons { display: flex; gap: 18px; margin-left: auto; font-weight: 500; }
.vg-header__icons a { color: var(--vg-dark); }
.vg-cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--vg-accent); color: #fff; font-size: 11px; padding: 0 5px; }
.vg-nav { background: var(--vg-dark); }
.vg-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.vg-nav li { position: relative; }
.vg-nav a { display: block; padding: 13px 16px; color: #fff; font-size: 13px; font-weight: 500; text-transform: uppercase; }
.vg-nav a:hover { color: #7fb2ff; }
.vg-nav ul ul { display: none; position: absolute; top: 100%; left: 0; min-width: 210px; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.12); z-index: 99; flex-direction: column; }
.vg-nav li:hover > ul { display: flex; }
.vg-nav ul ul a { color: var(--vg-text); text-transform: none; border-bottom: 1px solid var(--vg-line); }
.vg-menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.vg-menu-toggle span:not(.screen-reader-text) { display: block; width: 24px; height: 2px; background: var(--vg-dark); margin: 5px 0; }
@media (max-width: 900px) {
	.vg-search { display: none; }
	.vg-menu-toggle { display: block; }
	.vg-nav { display: none; }
	.vg-nav.is-open { display: block; }
	.vg-nav ul { flex-direction: column; }
	.vg-nav ul ul { position: static; display: flex; box-shadow: none; background: transparent; }
	.vg-nav ul ul a { color: #cfd6de; border: 0; padding-left: 32px; }
}
.vg-footer { background: var(--vg-dark); color: #b9c0c8; padding: 30px 0; text-align: center; font-size: 14px; }
.vg-footer ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; }
.vg-footer a { color: #fff; }

/* ---------- WooCommerce product cards (loops, incl. Elementor Products widgets) ---------- */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	background: #fff;
	border: 1px solid var(--vg-line);
	border-radius: var(--vg-radius);
	padding: 0 0 16px;
	overflow: hidden;
	text-align: left;
	transition: box-shadow .25s, border-color .25s, transform .25s;
	display: flex;
	flex-direction: column;
}
.woocommerce ul.products li.product:hover {
	box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
	border-color: transparent;
	transform: translateY(-3px);
}
.woocommerce ul.products li.product a img {
	background: var(--vg-soft);
	margin: 0 0 12px !important;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	width: 100%;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: 14px !important;
	font-weight: 500;
	color: var(--vg-dark);
	padding: 0 14px !important;
	min-height: 42px;
	line-height: 1.45;
}
.woocommerce ul.products li.product .star-rating { margin: 4px 14px 6px !important; font-size: 12px; color: #f5a623; }
.woocommerce ul.products li.product .price {
	padding: 0 14px;
	color: var(--vg-accent) !important;
	font-weight: 600;
	font-size: 16px !important;
}
.woocommerce ul.products li.product .price del { color: #999; font-size: 12px; font-weight: 400; opacity: 1; }
.woocommerce ul.products li.product .price ins { text-decoration: none; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .added_to_cart {
	margin: auto 14px 0 !important;
	background: var(--vg-green) !important;
	color: #fff !important;
	border-radius: 5px !important;
	font-weight: 500 !important;
	font-size: 13px !important;
	text-align: center;
	padding: 10px !important;
}
.woocommerce ul.products li.product .added_to_cart { margin-top: 8px !important; background: var(--vg-dark) !important; }
.woocommerce ul.products li.product .button:hover { background: #178a45 !important; }
.woocommerce span.onsale,
.woocommerce ul.products li.product .onsale {
	background: var(--vg-accent);
	color: #fff;
	border-radius: 3px;
	min-height: 0;
	min-width: 0;
	line-height: 1.6;
	padding: 2px 8px;
	font-size: 11px;
	font-weight: 600;
	top: 10px;
	left: 10px;
	right: auto;
	margin: 0;
}

/* Category loop */
.woocommerce ul.products li.product-category { border: 0; background: transparent; text-align: center; padding: 0; }
.woocommerce ul.products li.product-category:hover { box-shadow: none; transform: none; }
.woocommerce ul.products li.product-category a img {
	border-radius: 50%;
	border: 2px solid transparent;
	transition: border-color .2s, background .2s;
	padding: 14%;
}
.woocommerce ul.products li.product-category a:hover img { border-color: var(--vg-primary); background: #eaf2ff; }
.woocommerce ul.products li.product-category .woocommerce-loop-category__title { font-size: 13px !important; font-weight: 500; padding: 0 !important; min-height: 0; }
.woocommerce ul.products li.product-category mark.count { background: none; color: var(--vg-muted); font-weight: 400; }

/* Buttons & single product */
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #respond input#submit.alt,
.woocommerce button.single_add_to_cart_button {
	background: var(--vg-green) !important;
	color: #fff !important;
	border-radius: 5px;
}
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: var(--vg-primary);
	color: #fff;
	border-radius: 5px;
	font-family: inherit;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover { background: var(--vg-primary-dark); color: #fff; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--vg-accent); font-weight: 600; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: #fff; }
.woocommerce .woocommerce-breadcrumb a { color: var(--vg-primary); }

/* Shop layout (fallback) */
.vg-shop__layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
.vg-shop__sidebar .widget { margin-bottom: 28px; }
.vg-shop__sidebar .widget-title { font-size: 16px; border-bottom: 2px solid var(--vg-line); padding-bottom: 8px; }
@media (max-width: 900px) { .vg-shop__layout { grid-template-columns: 1fr; } }

/* Elementor sidebar widgets on the shop template */
.elementor-widget-wp-widget-woocommerce_product_categories ul { list-style: none; padding: 0; margin: 0; }
.elementor-widget-wp-widget-woocommerce_product_categories li { padding: 7px 0; border-bottom: 1px solid var(--vg-line); }
.elementor-widget-wp-widget-woocommerce_product_categories li a { color: var(--vg-text); }
.elementor-widget-wp-widget-woocommerce_product_categories li a:hover { color: var(--vg-primary); }
.elementor-widget-wp-widget-woocommerce_product_categories h5,
.elementor-widget-wp-widget-woocommerce_price_filter h5 { font-size: 16px; margin-bottom: 12px; }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background-color: var(--vg-primary); }

/* Announcement bar marquee (header template text widget with class .vg-marquee) */
.vg-marquee { overflow: hidden; white-space: nowrap; }
.vg-marquee .elementor-widget-container > *,
.vg-marquee .elementor-text-editor > * { display: inline-block; padding-left: 100%; animation: vg-marquee 30s linear infinite; margin: 0; }
@keyframes vg-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .vg-marquee .elementor-widget-container > * { animation: none; padding-left: 0; } }

/* Floating chat button pulse (footer template icon widget with class .vg-float-chat) */
.vg-float-chat .elementor-icon { animation: vg-pulse 2s infinite; }
@keyframes vg-pulse {
	0% { box-shadow: 0 0 0 0 rgba(37, 163, 90, .5); }
	70% { box-shadow: 0 0 0 14px rgba(37, 163, 90, 0); }
	100% { box-shadow: 0 0 0 0 rgba(37, 163, 90, 0); }
}

/* Hover lift utility – add CSS class "vg-lift" to any container */
.vg-lift { transition: transform .25s, box-shadow .25s; }
.vg-lift:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
