/* eMedia Vrindavan Store Theme — WooCommerce styling */

/* ===== SHOP LAYOUT ===== */
.emvs-shop-wrap { display: block; margin: 24px auto; }
.emvs-shop-wrap.has-sidebar { display: grid; grid-template-columns: 260px 1fr; gap: 30px; align-items: start; }
.emvs-shop-sidebar .widget { margin-bottom: 24px; background: #faf9f7; padding: 16px; border-radius: 8px; }
.woocommerce-ordering select { padding: 8px 12px; border-radius: 6px; border: 1px solid #ddd; }
.woocommerce-result-count { color: #888; }

ul.products.emvs-products { display: grid; grid-template-columns: repeat(var(--emvs-cols-desktop, 4), 1fr); gap: 20px; list-style: none; margin: 20px 0; }

/* ===== PRODUCT CARD ===== */
.emvs-product-card { position: relative; background: #fff; border: 1px solid #eee; border-radius: 10px; overflow: hidden; transition: box-shadow .2s ease; }
.emvs-product-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,.08); }
.emvs-product-card-link { display: block; color: inherit; }
.emvs-product-thumb { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #fafafa; }
.emvs-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.emvs-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 3px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; color: #fff; }
.emvs-badge-sale { background: var(--emvs-primary, #b3282d); }
.emvs-badge-new { background: var(--emvs-accent, #2e7d32); }
.emvs-product-info { padding: 12px 14px; }
.emvs-product-info h2, .emvs-product-info .woocommerce-loop-product__title { font-size: 15px; margin: 0 0 6px; }
.emvs-product-rating .star-rating { font-size: 13px; }
.emvs-product-price { font-weight: 700; color: var(--emvs-primary, #b3282d); }
.emvs-product-price del { color: #999; font-weight: 400; margin-right: 6px; }

.emvs-product-actions { display: flex; align-items: center; gap: 8px; padding: 0 14px 14px; flex-wrap: wrap; }
.emvs-product-actions .button { flex: 1; text-align: center; min-height: 40px; border-radius: 6px; background: var(--emvs-btn, #b3282d); color: #fff; border: none; padding: 8px 12px; font-size: 13px; }
.emvs-buy-now-link { flex: 1; text-align: center; min-height: 40px; line-height: 24px; border-radius: 6px; border: 2px solid var(--emvs-btn, #b3282d); color: var(--emvs-btn, #b3282d); font-size: 13px; font-weight: 600; padding: 6px 10px; }

/* ===== SINGLE PRODUCT ===== */
.emvs-single-product-wrap .product { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 24px 0; }
.summary.entry-summary { min-width: 0; }
.summary.entry-summary .product_title { font-size: 28px; }
.summary.entry-summary .price { font-size: 22px; color: var(--emvs-primary); font-weight: 700; display: block; margin: 10px 0; }
.summary.entry-summary .woocommerce-product-details__short-description { margin: 14px 0; color: #555; }
.summary.entry-summary form.cart { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.summary.entry-summary .quantity input { width: 70px; padding: 10px; border: 1px solid #ddd; border-radius: 6px; min-height: 44px; }
.summary.entry-summary .single_add_to_cart_button,
.emvs-buy-now-btn { min-height: 48px; padding: 0 24px; border-radius: 6px; font-weight: 700; border: none; }
.summary.entry-summary .single_add_to_cart_button { background: var(--emvs-btn, #b3282d); color: #fff; }
.emvs-buy-now-btn { background: var(--emvs-secondary, #f6a623); color: #1a1a1a; margin-left: 8px; }
.product_meta { font-size: 13px; color: #888; margin-top: 16px; }

/* Gallery styles */
.emvs-product-gallery { margin-bottom: 20px; }
.emvs-normal-main img { width: 100%; border-radius: 10px; cursor: zoom-in; transition: transform .3s ease; }
.emvs-normal-main img.emvs-zoomed { transform: scale(1.8); cursor: zoom-out; }
.emvs-normal-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.emvs-normal-thumbs .emvs-thumb { border: 2px solid transparent; border-radius: 6px; padding: 0; background: none; flex: 0 0 64px; }
.emvs-normal-thumbs .emvs-thumb.active, .emvs-normal-thumbs .emvs-thumb:hover { border-color: var(--emvs-primary); }
.emvs-normal-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; }

.emvs-catalog-view { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.emvs-catalog-item img { width: 100%; border-radius: 8px; }

.emvs-grid-view { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.emvs-grid-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 6px; }

.emvs-slider-view { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; }
.emvs-slide { flex: 0 0 85%; scroll-snap-align: center; }
.emvs-slide img { width: 100%; border-radius: 8px; }

/* Lightbox */
.emvs-lightbox-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 99999; display: flex; align-items: center; justify-content: center; }
.emvs-lightbox-overlay img { max-width: 92vw; max-height: 85vh; border-radius: 6px; }
.emvs-lightbox-close, .emvs-lightbox-prev, .emvs-lightbox-next { position: absolute; background: rgba(255,255,255,.15); color: #fff; border: none; width: 44px; height: 44px; border-radius: 50%; font-size: 22px; }
.emvs-lightbox-close { top: 20px; right: 20px; }
.emvs-lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.emvs-lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Product video */
.emvs-product-video { margin: 30px 0; }
.emvs-video-wrap { position: relative; width: 100%; padding-top: 56.25%; border-radius: 10px; overflow: hidden; background: #000; }
.emvs-video-wrap iframe, .emvs-video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Tabs / reviews (WooCommerce default markup, lightly styled) */
.woocommerce-tabs ul.tabs { display: flex; gap: 6px; border-bottom: 2px solid #eee; margin: 30px 0 0; flex-wrap: wrap; }
.woocommerce-tabs ul.tabs li { list-style: none; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 12px 18px; font-weight: 600; color: #888; }
.woocommerce-tabs ul.tabs li.active a { color: var(--emvs-primary); border-bottom: 3px solid var(--emvs-primary); }
.woocommerce-tabs .panel { padding: 24px 0; }
#reviews .comment-list { list-style: none; }
#reviews .star-rating { color: var(--emvs-secondary); }

.related.products, .upsells.products { margin-top: 50px; }

/* Sticky mobile add-to-cart bar */
.emvs-mobile-sticky-bar { display: none; }
@media (max-width: 782px) {
	.emvs-single-product-wrap .product { grid-template-columns: 1fr; }
	.emvs-mobile-sticky-bar { display: flex; align-items: center; gap: 10px; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #eee; padding: 10px 14px; z-index: 700; box-shadow: 0 -4px 12px rgba(0,0,0,.08); }
	.emvs-mobile-sticky-price { font-weight: 700; color: var(--emvs-primary); flex: 0 0 auto; }
	.emvs-mobile-sticky-add { flex: 1; text-align: center; background: var(--emvs-btn); color: #fff; padding: 12px; border-radius: 6px; font-weight: 700; }
	.emvs-mobile-sticky-whatsapp { width: 44px; height: 44px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
	body.single-product { padding-bottom: 70px; }
	ul.products.emvs-products { grid-template-columns: repeat(var(--emvs-cols-mobile, 2), 1fr); }
	.emvs-shop-wrap.has-sidebar { grid-template-columns: 1fr; }
	.emvs-catalog-view, .emvs-grid-view { grid-template-columns: repeat(2, 1fr); }
}

/* ===== CART / CHECKOUT — cosmetic only, no structural override ===== */
.woocommerce table.shop_table { border-radius: 8px; overflow: hidden; border: 1px solid #eee; width: 100%; }
.woocommerce table.shop_table th { background: #faf9f7; }
.woocommerce table.shop_table td, .woocommerce table.shop_table th { padding: 12px; }
.woocommerce-cart-form img { border-radius: 6px; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
	background: var(--emvs-btn, #b3282d); color: #fff; border-radius: 6px; padding: 12px 20px; min-height: 44px; border: none;
}
.woocommerce a.button.alt, .woocommerce #place_order { background: var(--emvs-secondary, #f6a623); color: #1a1a1a; }
.woocommerce-checkout #payment { background: #faf9f7; border-radius: 8px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
	min-height: 44px; border-radius: 6px; border: 1px solid #ddd; padding: 8px 10px;
}
@media (max-width: 782px) {
	.woocommerce table.shop_table, .woocommerce-cart-form { overflow-x: auto; display: block; }
	.woocommerce-checkout .col2-set, .woocommerce-checkout .col-1, .woocommerce-checkout .col-2 { width: 100% !important; float: none !important; }
}

/* My Account */
.woocommerce-MyAccount-navigation ul { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 8px 14px; background: #faf9f7; border-radius: 20px; font-size: 13px; }
.woocommerce-MyAccount-navigation li.is-active a { background: var(--emvs-primary); color: #fff; }
