/**
* Theme Name: Anarkali Child
* Description: This is a child theme of Anarkali.
* Author: <a href="http://ninetheme.com/about">Ninetheme</a>
* Template: anarkali
* Version: 1.3.25
*/

/*
 * Critical #1: Desktop header from 992px.
 * Tablet bottom nav: hidden from 768px (phones only).
 * Revert/edit: this file + Theme Options → Mobile Header Breakpoint.
 */

/* Phones: clear fixed bottom nav + iOS home indicator. */
@media (max-width: 767px) {
	html {
		scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
	}

	body.has-bottom-mobile-nav {
		padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
	}

	.has-bottom-mobile-nav .scroll-to-top {
		bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important;
		right: 15px !important;
		z-index: 103;
	}

	/* Above sticky PDP cart + bottom nav when both are visible. */
	body.bottom-popup-cart-active.has-bottom-mobile-nav .scroll-to-top {
		bottom: calc(280px + env(safe-area-inset-bottom, 0px)) !important;
	}

	.has-bottom-mobile-nav .anarkali-product-bottom-popup-cart.active:not(.relative) {
		bottom: calc(80px + env(safe-area-inset-bottom, 0px));
	}

	.anarkali-bottom-mobile-nav {
		padding-bottom: env(safe-area-inset-bottom, 0px);
	}
}

@media (min-width: 768px) {
	.anarkali-bottom-mobile-nav,
	.anarkali-bottom-mobile-nav.show-allways,
	.anarkali-bottom-mobile-nav.active,
	.scroll-start .anarkali-bottom-mobile-nav.show-onscroll {
		display: none !important;
		opacity: 0 !important;
		transform: translateY(100%) !important;
		pointer-events: none !important;
	}

	body.has-bottom-mobile-nav {
		padding-bottom: 0 !important;
	}

	.has-bottom-mobile-nav .scroll-to-top {
		bottom: 30px;
	}

	.has-bottom-mobile-nav .anarkali-product-bottom-popup-cart.active:not(.relative) {
		bottom: 0;
	}
}

@media (min-width: 992px) {
	header.anarkali-header-default {
		display: flex !important;
	}

	.anarkali-header-mobile-top {
		display: none !important;
	}
}

@media (max-width: 991px) {
	header.anarkali-header-default {
		display: none !important;
	}

	.anarkali-header-mobile-top {
		display: flex !important;
	}
}

/* Clip WooCommerce jquery.zoom leftover (980px+ .zoomImg). */
.anarkali-zoom-wrapper,
.woocommerce-product-gallery__image {
	overflow: hidden !important;
	max-width: 100%;
}

img.zoomImg {
	max-width: none;
}

/* PDP gallery: prev/next arrows stack as a red X in the image center. */
.single-product .anarkali-product-gallery-main-slider .swiper-button-prev,
.single-product .anarkali-product-gallery-main-slider .swiper-button-next,
.single-product .anarkali-swiper-main .swiper-button-prev,
.single-product .anarkali-swiper-main .swiper-button-next,
.single-product .anarkali-swiper-btn.swiper-button-prev,
.single-product .anarkali-swiper-btn.swiper-button-next {
	display: none !important;
}

/* Product pages: hide empty minicart drawer + sidebar Cart widget (title leftover). */
.single-product .cart-empty-content,
.single-product .cart-area.action-content,
.single-product .cart-area.panel-content-item,
.single-product .anarkali-side-panel .cart-area,
.single-product .widget_shopping_cart {
	display: none !important;
}

/* Hide cart/wishlist/compare badges when empty or 0. */
.anarkali-wc-count:empty,
.anarkali-wc-count.is-zero {
	display: none !important;
}

/*
 * Hero slider readability: theme overlay control only sets background-color
 * on :before; this makes the overlay layer + text-shadow actually paint.
 * Color still editable in Elementor → Home Main Slider → Overlay Color.
 */
.anarkali-main-slider .anarkali-slide-inner {
	position: relative;
}

.anarkali-main-slider .anarkali-slide-inner:before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-color: rgba(22, 18, 14, 0.4);
}

.anarkali-main-slider .anarkali-slide-inner > * {
	position: relative;
	z-index: 1;
}

.anarkali-main-slider .anarkali-slide-head,
.anarkali-main-slider .anarkali-slide-text {
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.45);
}

/*
 * PDP: equal Add to Cart / Buy Now widths; hide dense SEO tag dump.
 * Phone: qty full-width, then ATC | Buy Now side-by-side.
 */
.single-product form.cart.has-buynow,
.single-product .woocommerce-variation-add-to-cart.has-buynow {
	display: grid !important;
	grid-template-columns: max-content 1fr 1fr;
	align-items: stretch;
	gap: 10px;
}

.single-product form.cart.has-buynow .quantity,
.single-product .woocommerce-variation-add-to-cart.has-buynow .quantity {
	grid-column: 1;
	width: max-content;
	max-width: 140px;
}

.single-product form.cart.has-buynow .single_add_to_cart_button,
.single-product .woocommerce-variation-add-to-cart.has-buynow .single_add_to_cart_button {
	grid-column: 2;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: none !important;
}

.single-product form.cart.has-buynow .anarkali-product-after-cart.bynow-wrapper,
.single-product .woocommerce-variation-add-to-cart.has-buynow .anarkali-product-after-cart.bynow-wrapper {
	grid-column: 3;
	width: 100% !important;
	min-width: 0 !important;
	max-width: none !important;
	flex: none !important;
}

.single-product form.cart.has-buynow .anarkali-btn-buynow,
.single-product .woocommerce-variation-add-to-cart.has-buynow .anarkali-btn-buynow {
	width: 100%;
}

.single-product form.cart.has-buynow .anarkali-product-after-cart-btn.btns-wrapper,
.single-product .woocommerce-variation-add-to-cart.has-buynow .anarkali-product-after-cart-btn.btns-wrapper {
	grid-column: 1 / -1;
	width: 100%;
}

.single-product .product_meta .tagged_as,
.single-product .anarkali-product-meta .tagged_as {
	display: none !important;
}

@media (max-width: 767px) {
	.single-product form.cart.has-buynow,
	.single-product .woocommerce-variation-add-to-cart.has-buynow {
		grid-template-columns: 1fr 1fr;
	}

	.single-product form.cart.has-buynow .quantity,
	.single-product .woocommerce-variation-add-to-cart.has-buynow .quantity {
		grid-column: 1 / -1;
		width: 100%;
		max-width: none;
	}

	.single-product form.cart.has-buynow .single_add_to_cart_button,
	.single-product .woocommerce-variation-add-to-cart.has-buynow .single_add_to_cart_button {
		grid-column: 1;
	}

	.single-product form.cart.has-buynow .anarkali-product-after-cart.bynow-wrapper,
	.single-product .woocommerce-variation-add-to-cart.has-buynow .anarkali-product-after-cart.bynow-wrapper {
		grid-column: 2;
	}
}

/* Instagram strip: cover crops instead of stretched fill. */
.anarkali-instagram-slider img,
.elementor-widget-anarkali-instagram-slider img {
	object-fit: cover !important;
	width: 100%;
	height: 100%;
}

/*
 * Desktop main nav: active item is otherwise same color as default.
 * Gold accent + underline; includes Shop on product pages (current_page_parent).
 * Same padding on all items so active text stays on the same baseline.
 */
.anarkali-header-top-menu-area > ul > li.menu-item > a {
	position: relative;
	padding-bottom: 8px !important;
	display: inline-block;
	vertical-align: baseline;
	font-size: 14px !important;
	font-weight: 500 !important;
}

.anarkali-header-top-menu-area > ul > li.current-menu-item > a,
.anarkali-header-top-menu-area > ul > li.current-menu-ancestor > a,
.anarkali-header-top-menu-area > ul > li.current_page_item > a,
.anarkali-header-top-menu-area > ul > li.current_page_parent > a,
.anarkali-header-top-menu-area > ul > li.menu-item.active > a {
	color: #d8b27c !important;
}

.anarkali-header-top-menu-area > ul > li.current-menu-item > a::after,
.anarkali-header-top-menu-area > ul > li.current-menu-ancestor > a::after,
.anarkali-header-top-menu-area > ul > li.current_page_item > a::after,
.anarkali-header-top-menu-area > ul > li.current_page_parent > a::after,
.anarkali-header-top-menu-area > ul > li.menu-item.active > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: #d8b27c;
	pointer-events: none;
}
