/*
 Theme Name:   Hello Elementor Child
 Description:  Child theme for Hello Elementor
 Author:       Haroon Yamin
 Author URI:   https://www.linkedin.com/in/haroon-webdev
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  hello-elementor-child
*/

/* Add your custom CSS below */
.icon-grid .elementor-icon-wrapper {
    display: grid;
}
.product-featured img {
    aspect-ratio: 3 / 4 !important;
    object-fit: cover;
    object-position: center center;
}

/* Slider */
#hy-slider {
    min-width: 126vw !important;
    transform: translateX(-13vw);
}
#hy-slider .swiper-slide {
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#hy-slider .swiper-slide-active,
#hy-slider .swiper-slide-next,
#hy-slider .swiper-slide-prev {
  opacity: 1;
}

/* Media Query */
@media screen and (min-width: 1024px) {
	#hy-slider h4.elementor-heading-title {
		font-size: 34px;
	}
}
@media screen and (max-width: 768px) {
    #hy-slider {
        min-width: 160vw !important;
        transform: translateX(-30vw);
    }
    #hy-slider .swiper-slide-next,
    #hy-slider .swiper-slide-prev {
        opacity: 0.5;
    }
}

/* Button Animations */
.hy-move-left .elementor-button-icon {
    color: var( --e-global-color-primary );
    transition: all 0.4s ease;
}
.hy-move-left:hover .elementor-button-icon {
    transform: translateX(10px);
}
.hy-nav-close .elementor-button-icon {
    color: var(--e-global-color-primary);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
    transform-origin: center;
}
.hy-nav-close:hover .elementor-button-icon {
    transform: rotate(360deg) scale(1.1);
}
.hy-hover-primary svg,
.hy-hover-primary .elementor-heading-title {
    transition: all 0.3s ease;
}
.hy-hover-primary:hover svg,
.hy-hover-primary:hover .elementor-heading-title {
    color: var( --e-global-color-primary ) !important;
    fill: var( --e-global-color-primary ) !important;
}
.hy-product-wrapper .hy-product-overlay {
    opacity: 0;
    transform: translateY(6px);
    transition: all 0.3s ease;
}
.hy-product-wrapper:hover .hy-product-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Nav Header */
.hy-header-nav-btn {
    cursor: pointer;
}
#hy-header-nav {
    transition: all 0.6s ease 1.6s;
    height: 100%;
    max-height: 0;
    overflow: hidden;
}
#hy-header-nav.active {
    transition: all 0.5s ease;
    max-height: 100vh;
}
#hy-header-nav .hy-header-col-1 > * {
	transform: translateX(-16px);
    transition: all 0.6s ease 0.8s;
    opacity: 0;
}
#hy-header-nav .hy-header-col-2 > * {
	transform: translateX(-16px);
    transition: all 0.6s ease 0.4s;
    opacity: 0;
}
#hy-header-nav .hy-header-col-3 > * {
	transform: translateX(-16px);
    transition: all 0.6s ease;
    opacity: 0;
}
#hy-header-nav.active .hy-header-col-1 > * {
	transform: translateX(0);
    transition: all 0.6s ease 0.6s;
    opacity: 1;
}
#hy-header-nav.active .hy-header-col-2 > * {
    transform: translateX(0);
    transition: all 0.6s ease 1s;
    opacity: 1;
}
#hy-header-nav.active .hy-header-col-3 > * {
	transform: translateX(0);
    transition: all 0.6s ease 1.4s;
    opacity: 1;
}

/* WooCommerce General */
.wp-block-woocommerce-cart.alignwide {
    margin: 0 !important;
}
.wc-block-components-button {
    text-transform: uppercase;
    padding: 7px;
    min-height: 0 !important;
    font-size: 18px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    background-color: var( --e-global-color-primary );
    font-weight: 500;
}
.wc-block-components-button > * {
    color: #fff;
}
.wc-block-components-button:hover {
    opacity: 0.9;
}

/* WooCommerce Cart */
.wc-block-cart .wp-block-woocommerce-cart-order-summary-heading-block.wc-block-cart__totals-title,
.wc-block-cart-items__header > * {
    font-family: 'Barlow Condensed';
    font-size: 18px;
}
.woocommerce-cart .wc-block-components-product-name {
    color: #000;
    font-size: 18px;
}
.woocommerce-cart .wc-block-components-product-name:hover,
.woocommerce-cart .wc-block-components-product-name:active {
    color: var( --e-global-color-primary );
}
.elementor-menu-cart__product-name.product-name {
	color: #fff;
}

/* WooCommerce Checkout */
.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text,
.woocommerce-checkout .wc-block-components-title,
.woocommerce-checkout .entry-title {
	font-family: 'Barlow Condensed';
}

.hy-car-image img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
	width: 100%;
}
.hy-cat-wrapper .hy-car-image {
	transform: translateY(10px);
	height: 100%;
	max-height: 0;
	visibility: hidden;
	opacity: 0;
	transition: all 0.5s ease !important;
}
.hy-cat-wrapper:hover .hy-car-image {
	height: 100%;
	max-height: 350px;
	visibility: visible;
	opacity: 1;
	transform: translateY(0);
}









   /* 1. Image Preview Box Styling */
    .reveal-img-box {
        position: fixed;
        top: 0;
        left: 0;
        width: 320px;
        height: 320px;
        z-index: 9;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        
        /* CHANGE HERE: Start SMALL (Zoom In Effect) */
        /* Pehle 1.4 tha, ab 0.6 kar diya hai taaki chote se bada ho */
        transform: translate(-50%, -50%) scale(0.5); 
        
        /* Smooth transition */
        transition: opacity 0.9s ease, transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        
        overflow: hidden;
        border-radius: 8px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.4);
        background: #000;
    }

    /* 2. Image Styling */
    .reveal-img-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* 3. Jab Image Active ho (Dikhe) */
    .reveal-img-box.is-active {
        opacity: 1;
        visibility: visible;
        
        /* End NORMAL (Scale 1) */
        /* Chota (0.6) se Normal (1) par aayega -> POP/ZOOM IN Effect */
        transform: translate(-50%, -50%) scale(1);
    }

    /* 4. Cursor Styling */
    .hover-reveal-item {
        cursor: pointer;
        transition: background 0.3s;
    }
    
    .hover-reveal-item:hover {
        background-color: rgba(255,255,255,0.05); 
    }