/*
Theme Name: Astra Child
Author: Admin
Description: Child Theme of Astra
Version: 1.0.0
Template: astra

This is the child theme for Astra theme, generated with Generate Child Theme plugin by catchthemes.

(optional values you can add: Theme URI, Author URI, License, License URI, Tags, Text Domain)
*/

/* Remove the checkmark or tick from selected swatch */
.woo-variation-swatches .variable-items-wrapper 
.variable-item.image-variable-item.selected:not(.no-stock) 
.variable-item-contents::before,
.woo-variation-swatches .variable-items-wrapper 
.variable-item.color-variable-item.selected:not(.no-stock) 
.variable-item-contents::before {
    background-image: none !important;
    content: none !important;
}

.woo-variation-swatches .variable-item-contents::before {
    background-image: none !important;
}

.custom-popup-product-title {
    padding: 1% 0% 1% 2%;
  	border-style: solid;
  	border-width: 1px 1px 1px 1px;
  	border-color: #8A8078;
	color: #898079;
	font-family: "Public Sans", Sans-serif;
  	font-size: 16px;
  	font-weight: 600;
}

.elementor-popup-modal .dialog-close-button svg{
	fill: white !important;
}


.custom-download-shortcode a.button {
    background-color: #F2704A00; 
    fill: var(--e-global-color-primary);
    color: #898079;
    transition-duration: 0.7s;
    border-style: solid;
    border-width: 1px;
    border-color: #898079;
    border-radius: 0;
    padding: 12px 20px;
    font-family: var(--e-global-typography-accent-font-family), Sans-serif;
    font-weight: var(--e-global-typography-accent-font-weight);
    display: inline-block;
    text-align: center;
    text-decoration: none;
}

.woocommerce-js div.product form.cart .single_variation_wrap{
    display: none;
}

@media screen and (min-width: 1200px) and (max-width: 1930px){
	.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item){
    box-shadow: var(--wvs-item-box-shadow, 0 0 0 1px white);
        width: 7%;
    height: 10%;
}
}

@media screen and (min-width: 1931px) {
	.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item){
    box-shadow: var(--wvs-item-box-shadow, 0 0 0 1px white);
        width: 1%;
    height: 10%;
}
}


@media screen and (max-width: 550px){
	.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item){
    box-shadow: var(--wvs-item-box-shadow, 0 0 0 1px white);
        width: 15%;
    height: 10%;
}
}


.woo-variation-swatches .variable-items-wrapper .variable-item:not(.radio-variable-item):hover{
    box-shadow: var(--wvs-item-box-shadow, 0 0 0 1px white);
}

.variable-item-image{
    border-radius: 10px !important;
}

.swiper-slide {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swiper-slide-inner {
  width: 100%;
  height: 100%;
  display: flex;
}

.swiper-slide-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.swiper-wrapper {
  height: 100vh !important;
}

.swiper-pagination{
    margin-bottom: 25px;
}
div#n2-ss-2 .n2-style-785355f374be86c332d4665aae819858-dot {
    width: 30px;
    background-color: #ccc;
    margin: 0 6px !important;
    transition: background-color 0.3s ease;
}

.elementor-heading-title,  div#n2-ss-2item3, div#n2-ss-2item1, div#n2-ss-2item5 {
	font-family: "Gelasio" !important;
}

p, div#n2-ss-2 .n2-ss-button-container a div{
	font-family:"Public Sans";
}
.swiper-pagination {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
}

.single_variation_wrap, .ahfb-svg-iconset, .woo-selected-variation-item-name, .reset_variations, i.wpr-sub-icon.fas{
	display: none !important;
}

/* Zoom/scale effect on variation swatch hover */
.variable-item .variable-item-contents img {
  transition: transform 0.3s ease;
}

.variable-item:hover .variable-item-contents img {
  transform: scale(1.4);
  z-index: 2;
}

/* Base Header */
.elementor-location-header {
  position: sticky;
  top: 0;
  z-index: 999;
  transition: background-color 0.3s ease;
}

button.mfp-arrow, button.mfp-close.ekit-popup-close{
	z-index: 99999 !important;
}

/* Default transparent header */
.elementor-location-header:not(.scrolled) {
  background-color: transparent !important;
}

/* Background when header is sticky (scrolled) */
.elementor-location-header.scrolled {
  background-color: #1E1E1ECC !important;
}

/* Header background on hover for both states */
.elementor-location-header:hover {
  background-color: #1E1E1ECC !important;
}

/* Overlay base state (always present) */
@media screen and (min-width: 500px) {
  .elementor-location-header::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }

  .elementor-location-header:hover::after {
    opacity: 1;
  }
}

/* Swap the black logo to white when hovering the header — only on non-homepage */
body:not(.home) .elementor-location-header:hover img[src*="Trestle_Primary-Logo_CC_Black-1.png"] {
  content: url('https://trestleindia.com/wp-content/uploads/2025/05/Trestle_Primary-Logo_CC_White-1.png') !important;
}

/* Swap black logo with white version when header is sticky (scrolled) */
body:not(.home) .elementor-location-header.scrolled img[src*="Trestle_Primary-Logo_CC_Black-1.png"] {
  content: url('https://trestleindia.com/wp-content/uploads/2025/05/Trestle_Primary-Logo_CC_White-1.png') !important;
}

/* 💡 Completely remove header overlay on screens < 768px */
@media screen and (max-width: 767px) {
  .elementor-location-header::after {
    display: none !important;
    content: none !important;
    background: none !important;
    opacity: 0 !important;
    transition: none !important;
  }

  .elementor-location-header:hover::after {
    display: none !important;
    content: none !important;
    opacity: 0 !important;
  }
}

.wpr-sub-mega-menu{
    border-bottom: none !important; 
    border-right: none !important; 
    border-left: none !important; 
}

#sb_instagram #sbi_load{
	text-align: left !important;
}

/* Apply only on search result pages */
body.search #page.hfeed.site {
    background-color: #000 !important;
}

/* Hide unwanted meta info and excerpt only on search page */
body.search .entry-meta,
body.search .entry-header.ast-blog-single-element.ast-blog-meta-container,
body.search .ast-excerpt-container.ast-blog-single-element {
    display: none !important;
}

body.search .elementor-icon-list-text,
body.search .elementor-158 .elementor-element.elementor-element-1ccdc01 .elementor-heading-title,
body.search .elementor-158 .elementor-element.elementor-element-e688cd3 .elementor-heading-title {
    color: black !important;
}

div#n2-ss-2 .n2-ss-button-container a div{
	border-bottom: 1px solid white;
}

button.mfp-close.ekit-popup-close{
	margin-top: 28px !important;
}

/* make header the positioning context */
div.elementor.elementor-135.elementor-location-header {
  position: relative !important;
  z-index: 5; /* keep above page content if needed */
}

.elementor-element-5fd7b28 .wpr-sub-mega-menu {
    margin-top: 13px !important;
}


