/* eMedia Vrindavan Store Theme — main stylesheet */

/* ===== RESET / BASE ===== */
body {
	font-family: var(--emvs-body-font, -apple-system, sans-serif);
	color: var(--emvs-text, #333);
	background: var(--emvs-bg, #fff);
	line-height: 1.6;
	overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--emvs-heading-font, -apple-system, sans-serif);
	color: var(--emvs-heading, #1a1a1a);
	line-height: 1.3;
	margin: 0 0 .5em;
}
a { color: var(--emvs-primary, #b3282d); text-decoration: none; }
a:hover { color: var(--emvs-btn-hover, #8f2024); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
img, video, iframe { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link { position: absolute; top: -100px; left: 0; background: #000; color: #fff; padding: 10px 16px; z-index: 999999; }
.skip-link:focus { top: 0; }

/* Respect reduced-motion preference site-wide */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

:focus-visible { outline: 3px solid var(--emvs-secondary, #f6a623); outline-offset: 2px; }

.emvs-container { max-width: var(--emvs-container, 1200px); margin: 0 auto; padding: 0 16px; box-sizing: border-box; }

/* ===== BUTTONS ===== */
.emvs-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--emvs-btn, #b3282d); color: #fff; border: none; border-radius: 6px;
	padding: 12px 24px; font-weight: 600; min-height: 44px; font-size: 15px;
}
.emvs-btn:hover { background: var(--emvs-btn-hover, #8f2024); color: #fff; }
.emvs-btn-outline { background: transparent; border: 2px solid var(--emvs-btn, #b3282d); color: var(--emvs-btn, #b3282d); }
.emvs-btn-whatsapp { background: #25D366; }
.emvs-btn-whatsapp:hover { background: #1eb457; color: #fff; }

/* ===== HEADER ===== */
.emvs-header { background: var(--emvs-header-bg, #fff); border-bottom: 1px solid rgba(0,0,0,.06); position: relative; z-index: 500; }
.emvs-sticky-header .emvs-header { position: sticky; top: 0; }
.emvs-transparent-header .emvs-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; border-bottom: none; }
.emvs-transparent-header .emvs-header .emvs-icon-btn, .emvs-transparent-header .emvs-nav-menu > li > a, .emvs-transparent-header .emvs-site-title a { color: #fff; }

.emvs-header-inner { display: flex; align-items: center; gap: var(--emvs-menu-spacing, 24px); padding: 14px 16px; flex-wrap: nowrap; }
.emvs-site-branding img { max-width: var(--emvs-logo-width, 160px); height: auto; display: block; }
.emvs-site-title { font-size: 22px; font-weight: 700; margin: 0; }
.emvs-site-title a { color: var(--emvs-header-text, #1a1a1a); }
.emvs-site-tagline { font-size: 12px; color: #888; margin: 0; }

.emvs-main-navigation { flex: 1; }
.emvs-nav-menu { display: flex; gap: var(--emvs-menu-spacing, 24px); flex-wrap: wrap; }
.emvs-nav-menu > li > a { color: var(--emvs-header-text, #1a1a1a); font-weight: 500; padding: 8px 0; display: inline-block; }
.emvs-nav-menu > li > a:hover { color: var(--emvs-header-hover, #b3282d); }
.emvs-nav-menu li { position: relative; }
.emvs-nav-menu ul { position: absolute; top: 100%; left: 0; background: #fff; min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,.12); border-radius: 6px; padding: 8px 0; display: none; z-index: 50; }
.emvs-nav-menu li:hover > ul { display: block; }
.emvs-nav-menu ul li a { display: block; padding: 8px 16px; color: #333; }

.emvs-header-actions { display: flex; align-items: center; gap: 10px; }
.emvs-icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: transparent; border: none; color: var(--emvs-header-text, #1a1a1a); }
.emvs-icon-btn:hover { background: rgba(0,0,0,.06); }
.emvs-cart-count { position: absolute; top: 0; right: 0; background: var(--emvs-primary, #b3282d); color: #fff; font-size: 10px; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.emvs-header-whatsapp { color: #25D366; }

.emvs-mobile-menu-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; width: 40px; height: 40px; align-items: center; justify-content: center; }
.emvs-mobile-menu-toggle span { width: 22px; height: 2px; background: var(--emvs-header-text, #1a1a1a); display: block; }

.emvs-search-panel { display: none; background: #fafafa; border-top: 1px solid #eee; padding: 12px 16px; }
.emvs-search-panel.is-open { display: block; }
.emvs-search-form { display: flex; max-width: 600px; margin: 0 auto; gap: 8px; }
.emvs-search-form input { flex: 1; padding: 10px 14px; border: 1px solid #ddd; border-radius: 6px; min-height: 44px; }
.emvs-search-form button { padding: 10px 18px; background: var(--emvs-primary,#b3282d); color: #fff; border: none; border-radius: 6px; min-height: 44px; }

/* Mobile menu drawer */
.emvs-mobile-menu { position: fixed; top: 0; right: -320px; width: 300px; max-width: 85vw; height: 100%; background: #fff; z-index: 1000; transition: right .3s ease; overflow-y: auto; box-shadow: -8px 0 24px rgba(0,0,0,.15); }
.emvs-mobile-menu.is-open { right: 0; }
.emvs-mobile-menu-inner { padding: 20px; }
.emvs-mobile-menu-close { background: none; border: none; font-size: 28px; line-height: 1; margin-bottom: 16px; }
.emvs-mobile-nav-menu li { border-bottom: 1px solid #f0f0f0; }
.emvs-mobile-nav-menu li a { display: block; padding: 14px 4px; font-size: 16px; color: #222; }
.emvs-mobile-menu-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 999; display: none; }
.emvs-mobile-menu-backdrop.is-open { display: block; }
.emvs-mobile-whatsapp { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 12px; background: #e9fbef; border-radius: 8px; color: #1eb457; font-weight: 600; }

/* ===== HERO ===== */
.emvs-hero { position: relative; padding: 100px 0; background-size: cover; background-position: center; color: #fff; text-align: center; }
.emvs-hero:not(.has-image) { background: linear-gradient(135deg, var(--emvs-primary,#b3282d), var(--emvs-secondary,#f6a623)); }
.emvs-hero-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.emvs-hero.has-image .emvs-hero-overlay { display: block; }
.emvs-hero:not(.has-image) .emvs-hero-overlay { display: none; }
.emvs-hero-content { position: relative; z-index: 2; }
.emvs-hero-title { font-size: clamp(28px, 5vw, 48px); color: #fff; }
.emvs-hero-subtitle { font-size: 18px; margin-bottom: 24px; opacity: .95; }

/* ===== HOMEPAGE SECTIONS ===== */
.emvs-home-section { padding: 50px 0; }
.emvs-section-title { text-align: center; font-size: 28px; margin-bottom: 30px; position: relative; }

.emvs-products.emvs-product-grid { display: grid; grid-template-columns: repeat(var(--emvs-cols-desktop, 4), 1fr); gap: 20px; }
.emvs-products.emvs-product-slider { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; -webkit-overflow-scrolling: touch; }
.emvs-products.emvs-product-slider .emvs-product-card { flex: 0 0 220px; scroll-snap-align: start; }

.emvs-category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.emvs-category-card { display: block; text-align: center; }
.emvs-category-image { display: block; width: 100%; padding-top: 100%; background-size: cover; background-position: center; border-radius: 50%; margin-bottom: 8px; border: 3px solid #f0f0f0; }
.emvs-category-name { font-weight: 600; color: var(--emvs-heading); }

.emvs-promo-banner-section img { width: 100%; border-radius: 10px; display: block; }

.emvs-about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.emvs-about-image img { border-radius: 10px; width: 100%; }

.emvs-why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.emvs-why-item { padding: 24px; border-radius: 10px; background: #faf9f7; }

.emvs-testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.emvs-testimonial-card { background: #faf9f7; border-radius: 10px; padding: 20px; }
.emvs-testimonial-stars { color: var(--emvs-secondary, #f6a623); letter-spacing: 2px; margin-bottom: 8px; }

.emvs-social-icons-row { display: flex; justify-content: center; gap: 14px; }
.emvs-social-icon { width: 42px; height: 42px; border-radius: 50%; background: #f0f0f0; display: inline-flex; align-items: center; justify-content: center; color: var(--emvs-heading); }
.emvs-social-icon:hover { background: var(--emvs-primary,#b3282d); color: #fff; }

.emvs-whatsapp-cta-section { text-align: center; background: #e9fbef; }

.emvs-newsletter-section { text-align: center; }
.emvs-newsletter-form { display: flex; max-width: 420px; margin: 0 auto; gap: 8px; }
.emvs-newsletter-form input { flex: 1; padding: 12px 14px; border: 1px solid #ddd; border-radius: 6px; min-height: 44px; }
.emvs-newsletter-form button { padding: 12px 20px; background: var(--emvs-primary,#b3282d); color: #fff; border: none; border-radius: 6px; min-height: 44px; }
.emvs-newsletter-result { font-weight: 600; min-height: 20px; }

/* ===== FOOTER ===== */
.emvs-footer { background: var(--emvs-footer-bg, #1f1a17); color: var(--emvs-footer-text, #e5e0dd); padding: 50px 0 20px; margin-top: 40px; }
.emvs-footer-widget-title, .footer-widget-title { color: var(--emvs-footer-heading, #fff); font-size: 16px; margin-bottom: 14px; }
.emvs-footer a { color: var(--emvs-footer-link, #e5e0dd); }
.emvs-footer-widgets { display: grid; gap: 30px; margin-bottom: 30px; }
.emvs-footer-cols-2 { grid-template-columns: repeat(2, 1fr); }
.emvs-footer-cols-3 { grid-template-columns: repeat(3, 1fr); }
.emvs-footer-cols-4 { grid-template-columns: repeat(4, 1fr); }
.emvs-footer-menu li { margin-bottom: 8px; }
.emvs-footer-social { display: flex; gap: 12px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.1); }
.emvs-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 16px; text-align: center; font-size: 13px; }

/* ===== BLOG ===== */
.emvs-blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin: 30px 0; }
.emvs-blog-card { border-radius: 10px; overflow: hidden; border: 1px solid #eee; }
.emvs-blog-thumb img { width: 100%; display: block; }
.emvs-blog-card-body { padding: 18px; }
.entry-meta { font-size: 13px; color: #888; margin-bottom: 10px; }
.emvs-read-more { font-weight: 600; }
.emvs-single-post .entry-title, .emvs-page .entry-title, .emvs-archive-title { font-size: 32px; }
.emvs-single-thumb img, .emvs-page-thumb img { width: 100%; border-radius: 10px; margin-bottom: 20px; }
.entry-content { max-width: 100%; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content table td, .entry-content table th { border: 1px solid #eee; padding: 8px; }

.emvs-comments-area { margin-top: 40px; }
.emvs-comment-list { list-style: none; }
.emvs-comment { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.emvs-comment-avatar img { border-radius: 50%; }
.emvs-comment-meta { display: flex; gap: 10px; font-size: 13px; color: #888; margin-bottom: 4px; }
.emvs-comment-author { font-weight: 700; color: #222; }

.emvs-sidebar { margin-top: 40px; }

.emvs-breadcrumbs, .woocommerce-breadcrumb { font-size: 13px; color: #888; margin: 16px 0; }
.emvs-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.emvs-breadcrumbs li:not(:last-child)::after { content: '›'; margin-left: 6px; }

.emvs-404 { text-align: center; padding: 80px 0; }
.emvs-404-content h1 { font-size: 96px; color: var(--emvs-primary); margin: 0; }
.emvs-404-search { max-width: 420px; margin: 24px auto 0; }

/* ===== WHATSAPP FLOATING & PRODUCT BUTTONS ===== */
.emvs-floating-whatsapp { position: fixed; bottom: 24px; z-index: 800; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.emvs-floating-whatsapp.emvs-pos-left { left: 20px; }
.emvs-floating-whatsapp.emvs-pos-right { right: 20px; }
.emvs-whatsapp-btn { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff; padding: 10px 16px; border-radius: 6px; min-height: 44px; }
.emvs-whatsapp-card-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 50%; }

/* ===== MUSIC PLAYER ===== */
.emvs-music-toggle { position: fixed; bottom: 90px; z-index: 800; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 1px solid #ddd; box-shadow: 0 4px 12px rgba(0,0,0,.15); font-size: 20px; }
.emvs-music-toggle.emvs-pos-desktop-left { left: 20px; }
.emvs-music-toggle.emvs-pos-desktop-right { right: 20px; }
.emvs-music-toggle.is-playing { animation: emvs-pulse 1.4s infinite; }
@keyframes emvs-pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.12);} }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
	.emvs-products.emvs-product-grid { grid-template-columns: repeat(var(--emvs-cols-tablet, 3), 1fr); }
	.emvs-category-grid { grid-template-columns: repeat(4, 1fr); }
	.emvs-about-grid, .emvs-why-grid, .emvs-testimonial-grid { grid-template-columns: repeat(2, 1fr); }
	.emvs-footer-cols-4, .emvs-footer-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 782px) {
	.emvs-main-navigation, .emvs-header-actions .emvs-icon-btn:not(.emvs-search-toggle):not(.emvs-cart-icon) { display: none; }
	.emvs-mobile-menu-toggle { display: flex; }
	.emvs-header-inner { justify-content: space-between; }
	.emvs-products.emvs-product-grid { grid-template-columns: repeat(var(--emvs-cols-mobile, 2), 1fr); }
	.emvs-category-grid { grid-template-columns: repeat(3, 1fr); }
	.emvs-about-grid, .emvs-why-grid, .emvs-testimonial-grid, .emvs-blog-grid { grid-template-columns: 1fr; }
	.emvs-footer-widgets { grid-template-columns: 1fr !important; }
	.emvs-hero { padding: 60px 0; }
	.emvs-music-toggle.emvs-pos-mobile-left { left: 20px; right: auto; }
	.emvs-music-toggle.emvs-pos-mobile-right { right: 20px; left: auto; }
}

@media (max-width: 480px) {
	.emvs-category-grid { grid-template-columns: repeat(2, 1fr); }
	.emvs-newsletter-form { flex-direction: column; }
	.emvs-testimonial-grid { grid-template-columns: 1fr; }
}

/* Ensure nothing can ever force horizontal scroll */
html, body { max-width: 100%; overflow-x: hidden; }
* { box-sizing: border-box; }
