/*
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
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  hello-elementor-child
*/

/* Add your custom styles below this line */
.hy-header-wrapper {
	backdrop-filter: blur(4px);
}
.woocommerce-ordering {
	margin: 0 !important;
}
.icon-shadow .elementor-icon {
	box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.06);
}
.icon-grid a,
.icon-grid .elementor-icon-wrapper {
	display: grid;
}
.fill-none svg {
	fill: none !important;
}
.heading-color span {
	color: #A1A1A1;
}
.heading-color-gold span {
	color: var(--e-global-color-primary);
}
.hy-product-card-image img {
	backface-visibility: hidden;
	object-fit: cover;
	aspect-ratio: 0.8;
	transition: all 0.4s ease;
}
.hy-product-card:hover .hy-product-card-image img {
	transform: scale(1.05);
}
.hy-newsletter-form button.elementor-button[type="submit"] {
	background-image: linear-gradient(90deg, var( --e-global-color-primary ) 0%, var( --e-global-color-secondary ) 100%) !important;
}
.hy-newsletter-form button.elementor-button[type="submit"]:hover {
	transform: translateY(-4px);
}

/*NAVIGATION BUTTON STATES */
.hy-product-btn-prev,
.hy-product-btn-next {
    transition: all 0.4s ease;
    cursor: pointer;
}
.hy-product-btn-prev:hover,
.hy-product-btn-next:hover {
    transform: scale(1.05);
}
.hy-product-btn-prev.swiper-button-disabled,
.hy-product-btn-next.swiper-button-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* SEARCH HEADER */
.hy-search-wrapper {
    max-height: 0;
    overflow: hidden !important;
}
.hy-search-wrapper.active:has( .e-search-results-list ) {
    overflow: visible !important;
}

/* PAGINATION SCROLLER */
.hy-slider-pagination {
    scroll-behavior: smooth;
    pointer-events: none;
}
/* Optional: Custom scrollbar styling */
.hy-slider-pagination::-webkit-scrollbar {
    height: 4px;
}
.hy-slider-pagination::-webkit-scrollbar-track {
    background: var(--e-global-color-9055e82);
    border-radius: 2px;
}
.hy-slider-pagination::-webkit-scrollbar-thumb {
    background: var(--e-global-color-primary);
    border-radius: 2px;
}
.hy-slider-pagination::-webkit-scrollbar-thumb:hover {
    background: var(--e-global-color-636a807);
}

@media screen and (max-width: 1024px) {
	.hy-footer-gallery .elementor-image-gallery .gallery-columns-6 .gallery-item {
		width: fit-content;
	}
}
@media screen and (max-width: 768px) {
    .hy-product-slider .swiper {
        overflow: visible !important;
    }
}

/*** Custom Account Page Styles ***/
.custom-register-wrapper {
    background-color: #f4f4f4;
    /* Optional: Add the grid lines if you have the image, or a CSS gradient pattern */
/*     min-height: 100vh; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    font-family: 'Inter', sans-serif; /* Adjust to your theme font */
}

.register-card {
    background: #fff;
    width: 100%;
    max-width: 450px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* Headings */
.register-card h2 {
    font-size: 24px !important;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.sub-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Social Buttons */
.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 12px !important;
    border: 1px solid #eee !important;
    background: #f9f9f9 !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #333 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background 0.2s !important;
}

.btn-social:hover {
    background: #f0f0f0 !important;
}

.btn-social img, 
.btn-social svg {
    margin-right: 10px !important;
    width: 20px !important;
    height: 20px !important;
}


/* Divider with "or" */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider:before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #eee;
    z-index: 0;
}

.divider span {
    background: #fff;
    padding: 0 15px;
    color: #999;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Form Fields */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 14px;
    background: #fbfbfb;
    border: 1px solid #eee;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #d4af37; /* Gold tint on focus */
    background: #fff;
}

/* Password Eye Icon */
.password-input-wrapper {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
}

/* Checkbox */
.checkbox-container {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin-bottom: 25px;
}

.checkbox-container input {
    margin-right: 10px;
}

/* Gold Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, #c9a758, #e8cc80);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
}

.btn-submit:hover {
    opacity: 0.9;
}

/* Footer Link */
.footer-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.footer-link a {
    color: #c9a758;
    text-decoration: none;
    font-weight: 600;
}

/* Error Message */
.register-error {
    background: #ffe6e6;
    color: #d63031;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}
.form-check-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.checkbox-container {
    margin-bottom: 0;
}

.forgot-password-link {
    color: #999;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}
.forgot-password-link:hover {
    color: #c9a758;
}
.login-form .btn-submit {
    margin-top: 20px;
}

/* Checkout */
.hy-billing-fields {
    padding: 32px 24px;
    border-radius: 16px;
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.06);
}

/* .woocommerce-checkout .form-row {
    margin-bottom: 16px !important;
    width: 100% !important;
}
.woocommerce-checkout .form-row label {
    margin-bottom: 8px !important;
    font-size: 18px !important;
    line-height: 1em !important;
}
.woocommerce-checkout .form-row label span {
    display: none !important;
}
.woocommerce-checkout .form-row .select2-selection,
.woocommerce-checkout .form-row input {
    border-radius: 8px !important;
    border: 1px solid #DADADA !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 6px !important;
}
.woocommerce-checkout .form-row input {
    padding: 12px 16px !important;
}
.woocommerce-checkout #billing_address_2_field,
.woocommerce-checkout #billing_last_name_field {
    display: none !important;
}
#billing_first_name_field,
#billing_address_1_field {
	clear: both;
	width: 100%;
} */

/* Age Verification Form */
.age-gate {
	border-radius: 16px;
}
.age-gate__form .age-gate__headline {
	font-size: 24px;
	line-height: 1.333em;
	margin-bottom: 8px;
}
.age-gate__form .age-gate__challenge {
	font-size: 16px;
	line-height: 1.5em;
	color: #545454;
	margin-bottom: 24px;
}
.age-gate__form .age-gate__buttons {
	flex-direction: column;
	justify-content: stretch;
	align-items: stretch;
}
.age-gate__form .age-gate__submit--no {
	border: 1px solid #DADADA;
	background: transparent;
	color: #000;
}
.age-gate__form .age-gate__submit--no:hover {
	border: 1px solid rgb(29, 29, 29);
}
.age-gate__form .age-gate__submit--yes {
	background: linear-gradient(to right, #c9a758, #e8cc80);
}
.age-gate__form .age-gate__additional-information p {
	font-size: 14px;
    line-height: 1.3em;
}
.age-gate__form .age-gate__error {
	font-weight: 500;
	margin-bottom: 16px;
}


/* WooCommerce Account Page */

/* Navigation Container */
.woocommerce-MyAccount-navigation ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0;
}

/* Navigation Links - Default State */
.woocommerce-MyAccount-navigation li a {
    color: #545454; /* Text Color from palette */
    font-weight: 600;
    display: block;
    padding: 8px 14px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.woocommerce-MyAccount-navigation li a br {
    display: none;
}

/* Navigation Links - Hover & Active State */
.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li a:active,
.woocommerce-MyAccount-navigation li.is-active a {
    background-color: #F3F3F3; /* Light BG from palette */
    color: #BE9750; /* Primary Gold Color */
}

/* Headings */
.woocommerce-account .woocommerce-Address-title h2 {
    font-size: 22px !important;
    color: #1A1A19; /* Heading Color from palette */
}

/* Buttons (Save Address, etc.) */
.woocommerce-account .woocommerce-address-fields .button,
.woocommerce-account .woocommerce-Button {
    margin-top: 24px !important;
    background-color: #BE9750 !important; /* Primary Gold Color */
    padding: 12px 22px !important;
    color: #FFFFFF !important; /* White Color */
    font-weight: 500 !important;
    border: none;
    transition: all 0.3s ease;
}

/* Buttons - Hover State */
.woocommerce-account .woocommerce-address-fields .button:hover,
.woocommerce-account .woocommerce-address-fields .button:active,
.woocommerce-account .woocommerce-Button:hover,
.woocommerce-account .woocommerce-Button:active {
    background-color: #1A1A19 !important; /* Changed to 'Heading' (Dark) for premium contrast */
    color: #FFFFFF !important;
}

/* Content Links */
.woocommerce-MyAccount-content a {
    color: #BE9750; /* Primary Gold Color */
    text-decoration: none;
}

.woocommerce-MyAccount-content a:hover {
    color: #CFAC50; /* Main BG/Darker Gold on hover */
    text-decoration: underline;
}
.hy-total-row.hy-coupon-row {
	display: none !important;
}
.hy-total-row.hy-discount-row {
	color: #5ba238;
}
.hy-remove-coupon {
	color: #000 !important;
    padding: 6px !important;
    display: inline-grid !important;
	transform: translateY(2px) !important;
}
.hy-remove-coupon:hover,
.hy-remove-coupon:active {
	background: rgba(0,0,0,0.2) !important;
}
.hy-redirect-addtocart {
    background: linear-gradient(90deg, var(--e-global-color-primary) 0%, var(--e-global-color-secondary) 100%) !important;
    color: white !important;
    font-size: 18px;
    font-weight: 500 !important;
    border-radius: 5px;
    padding: 14px 18px !important;
    cursor: pointer;
    width: 100%;
    text-align: center;
    transition: all 0.4s ease;
    border: none;
}
.hy-redirect-addtocart:disabled {
    background: var(--e-global-color-primary) !important;
    cursor: wait;
    opacity: 0.7;
}

.hy-redirect-addtocart:hover:not(:disabled),
.hy-redirect-addtocart:active:not(:disabled) {
    transform: translateY(-4px);
}
.woocommerce-account .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    margin-bottom: 24px;
}
.woocommerce-account .woocommerce-Address-title h2 {
    margin: 0 !important;
}
.woocommerce-account .woocommerce-Address-title::before,
.woocommerce-account .woocommerce-Address-title::after {
    content: initial !important;
}
.woocommerce-account .woocommerce-Address-title br {
    display: none !important;
}
.woocommerce-account .woocommerce-Address-title p a {
    text-decoration: underline !important;
}
.woocommerce-EditAccountForm br {
    display: none !important;
}

/* Mobile Responsive */
@media screen and (max-width: 768px) {
    .woocommerce-MyAccount-navigation {
        margin-bottom: 48px;
    }
    .woocommerce-account .form-row,
    .woocommerce-account .woocommerce-form-row {
        width: 100% !important;
    }
    .woocommerce-account #account_display_name_description {
        font-size: 14px !important;
        color: #545454; /* Text Color */
    }
    .woocommerce-account .woocommerce-Address {
        margin-bottom: 24px !important;
    }
}

/* Custom Product Grid */
.custom-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 20px;
    row-gap: 48px;
}
.custom-product-item {
	font-family: "Clash Grotesk", Sans-serif;
	display: flex;
	flex-direction: column;
	position: relative;
}
.item-image-wrapper {
	display: grid;
	border: 1px solid #DADADA;
	border-radius: 16px;
	overflow: hidden;
}
.item-image-wrapper img {
	width: 100%;
	height: auto;
	backface-visibility: hidden;
    object-fit: cover;
    aspect-ratio: .8;
	transition: all 0.3s ease;
}
.custom-product-item:hover .item-image-wrapper img {
	transform: scale(1.05);
}
.item-summary-wrapper {
	padding: 20px;
}
.custom-product-item h3 {
	font-size: 20px !important;
	font-weight: 500;
    line-height: 1.3333em;
    color: var(--e-global-color-b60df5e);
	margin-top: 0;
	margin-bottom: 12px;
}
.custom-product-item .price {
	font-size: 18px;
}
.custom-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}
.custom-pagination > * {
	display: block;
	padding: 6px 14px;
	border: 1px solid #DADADA;
	border-radius: 6px;
	font-weight: 500 !important;
    color: #525252 !important;
    line-height: 1.25em !important;
	transition: all 0.4s ease;
}
.custom-pagination > *:hover {
	background-color: rgba(0, 0, 0, 0.05);
}
.custom-pagination > span {
	background-color: var(--e-global-color-secondary);
}
.custom-product-item-link-wrapper {
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.custom-product-item-link {
	display: grid;
	padding: 8px;
	border-radius: 50px;
	border: 1px solid #DADADA;
	background-color: #ffffff;
	cursor: pointer;
}
.custom-product-item-link:hover {
	background-color: #EBCF8E42;
}
.custom-product-item-icon-flex {
	display: flex;
}
.custom-product-item-icon {
	width: 24px;
	height: 24px;
}
/* Archive Page Filter */
.archive-filter-wrapper {
	display: flex; 
	justify-content: space-between; 
	align-items: center; 
	margin-bottom: 20px;
	column-gap: 10px;
	row-gap: 10px;
	flex-wrap: wrap;
	font-size: 20px;
    font-weight: 500;
}
.archive-filter-sorting {
	display: flex; 
	justify-content: space-between; 
	align-items: center;
	gap: 10px;
}
.archive-filter-sorting span {
	font-size: 20px;
    font-weight: 500;
}

.hy-product-comments .woocommerce-Reviews-title {
	font-size: 22px;
}
.hy-product-comments .commentlist {
	padding: 0;
}
.woocommerce #reviews #comments ol.commentlist li .comment-text {
	margin-left: 40px;
}
.hy-product-comments #reply-title {
	font-weight: 500;
    font-size: 22px;
    display: block;
    margin-top: 16px;
}
.woocommerce #review_form #respond .form-submit input {
	background-color: #BE9750;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
}
.woocommerce #review_form #respond .form-submit input:hover {
	background-color: #222;
}
.woocommerce #review_form #respond textarea {
	border-radius: 4px;
}

@media (max-width: 768px) {
    .custom-product-grid { 
		grid-template-columns: repeat(2, 1fr); 
		column-gap: 8px;
    	row-gap: 24px;
	}
	.custom-product-item h3 {
		font-size: 18px !important;
		margin-bottom: 4px;
	}
	.custom-product-item .price {
		font-size: 14px;
	}
	.item-summary-wrapper {
		padding: 8px 2px;
	}
	.custom-product-item-icon {
		width: 20px;
		height: 20px;
	}
	body.woocommerce-checkout .woocommerce,
	.hy-checkout-wrapper,
	.hy-checkout-left #customer_details {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
}	

/* Waave Age Popup */
@media screen and (max-width: 768px) {
	.age-verification-popup {
		padding-left: 1rem !important;
		padding-right: 1rem !important;
	}
}
.age-verification-popup {
	.age-verification-q {
		line-height: 1.6em;
	}
	.age-verification-btn {
		padding: 8px 32px;
		font-weight: 500 !important;
	}
	.age-verification-btn.age-verification-btn-yes {
		background: linear-gradient(90deg, var( --e-global-color-primary ) 0%, var( --e-global-color-secondary ) 100%);
		border: 1px solid #be9750;
	}
	.age-verification-btn.age-verification-btn-no {
		background: transparent;
		border: 1px solid #be9750;
	}
	.age-verification-btn:hover {
		background: #be9750;
	}
}

/* Legal Single Page */
#legal-single-page h2 {
	font-size: 1.75rem;
	margin-top: 1rem;
	margin-bottom: 0.625rem;
}
#legal-single-page h3 {
	font-size: 1.5rem;
	margin-top: 0.75rem;
	margin-bottom: 0.5rem;
}
#legal-single-page ul,
#legal-single-page ol {
	margin-bottom: 10px;
}
#legal-single-page strong {
	font-weight: 600;
}

/* Checkout Consent */
.hy-required-checkbox:has(#required_research_consent) {
	label {
		line-height: 1.6em;
		display: block;
		span {
			color: #222;
			line-height: 1em !important;
		}
	}
	.woocommerce-invalid-required-field span {
		color: #dc3545 ;
	}
}
