/* ===================================================
   DevPurple Custom Styles
   Originally in WordPress Additional CSS
   Moved to theme for better performance & caching
   =================================================== */

/* ---------- Checkout ---------- */
.woocommerce-terms-and-conditions-wrapper {
    display: none;
}

#place_order {
    text-indent: -9999px;
    line-height: 0;
}

#place_order::after {
    content: "Place Order";
    text-indent: 0;
    display: block;
    line-height: initial;
}

.reset_variations {
    display: none !important;
}

/* Hide the original variation price VISUALLY but keep it in the DOM */
.single_variation_wrap .woocommerce-variation-price {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Hide price variation until the price has updated in the box */
.variations .custom-variation-price {
    opacity: 0;
}

/* Show it after JavaScript runs */
.variations .custom-variation-price.js-loaded {
    opacity: 1;
}

/* Hide price on single product pages only */
.ayudawp-lowest-price {
    display: none !important;
}

/* Show price on shop/archive pages (redundant but explicit) */
body.archive .ayudawp-lowest-price,
body.post-type-archive-product .ayudawp-lowest-price {
    display: block !important;
}

/* ---------- Product Gallery ---------- */

/* Fixed container height based on largest image */
.woocommerce-product-gallery {
    min-height: 600px;
    position: relative;
}

/* Main image container - prevents thumbnails from moving up/down */
.woocommerce-product-gallery .flex-viewport {
    min-height: 400px !important;
    margin-bottom: 20px;
    width: 100%;
}

/* Ensure images maintain aspect ratio within container */
.woocommerce-product-gallery .flex-active-slide img {
    object-fit: contain;
    max-height: 100%;
    width: auto !important;
    margin: 0 auto;
}

/* Thumbnails container - keep below main image */
.woocommerce-product-gallery .flex-control-thumbs {
    clear: both;
    margin-top: 0px !important;
    padding-top: 10px !important;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

/* Individual thumbnail styling */
.woocommerce-product-gallery .flex-control-thumbs li {
    flex: 0 0 auto !important;
    margin: 0px !important;
    padding: 0px !important;
    border: 1px solid !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    opacity: 0.8;
    transition: opacity 0.3s;
    border: 0px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .woocommerce-product-gallery {
        min-height: 300px;
    }

    .woocommerce-product-gallery .flex-viewport {
        min-height: 250px !important;
    }
}

/* ---------- Gallery Fade Effect / Speed ---------- */
.woocommerce-product-gallery__image {
    transition: opacity 0s ease-in-out !important;
    animation-duration: 0s !important;
}

.flexslider .slides img,
.woocommerce-product-gallery .flex-viewport,
.woocommerce-product-gallery .flex-active-slide {
    transition: all 0s ease-in-out !important;
}

.woocommerce-product-gallery .woocommerce-product-gallery__image {
    opacity: 1;
    transition: opacity 0s ease-in-out !important;
}

.woocommerce-product-gallery .flex-control-thumbs li img {
    transition: opacity 0s ease-in-out, transform 0s ease-in-out;
}

.woocommerce-product-gallery .flex-control-thumbs li img:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.flexslider:hover .slides li {
    transition: opacity 0s ease-in-out !important;
}

/* ---------- Order Received Page ---------- */
.xlwcty_title {
    display: none;
}

.order-again {
    display: none;
}

.entry-header.xlwcty_thankyou-title {
    display: none;
}

/* ---------- General Layout ---------- */
#primary {
    margin-top: 2em;
    margin-bottom: 2em;
}

.woocommerce-order-received #primary {
    margin-top: -3em;
		margin-bottom: -3em;
}

.woocommerce-form-login-toggle{
	display:none;
}

.woocommerce-form-coupon-toggle{
	display:none;
}

.site-header-row{
	padding-top:10px;
}


/* ---------- Shop / Archive ---------- */
.products li.product .button {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    position: static;
}

/* ---------- My Account ---------- */
.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--orders,
.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--dashboard,
.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--edit-address {
    display: none;
}

.woocommerce-MyAccount-navigation-link--dashboard a {
    font-size: 0 !important;
}

/* ---------- Reviews ---------- */
.woocommerce-review-link {
    pointer-events: none;
    color: black;
    text-decoration: none;
}

.rvx-review-card {
    pointer-events: none;
}

#comments {
    width: 100% !important;
    padding: 0em 10em 0em 10em !important;
}

/* Display Avatars on Reviews When Showing */
.avatar,
.avatar-60 {
    display: block !important;
    float: left !important;
    position: absolute !important;
    padding: 0 !important;
    top: 0 !important;
    left: 0 !important;
    width: 50px !important;
    height: auto !important;
    margin: 0 !important;
    max-height: none !important;
    border-radius: 50% !important;
}

/* ---------- Header Icons ---------- */

/* Account Original */
#primary-menu a[href*="my-account"] {
    font-size: 0px;
}

/* Account Icon */
#primary-menu a[href*="my-account"]::before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f2bd";
    font-size: 18px;
    line-height: 0;
    display: inline-block;
    text-align: center;
    vertical-align: middle;
}

/* Search Icon */
.search-toggle-open {
    text-align: center;
    vertical-align: middle;
}

/* Search Hover */
.search-toggle-open:hover {
    color: black !important;
}

/* Cart Original */
.header-cart-button .kadence-svg-iconset {
    display: none;
}

/* Cart Full Icon */
.header-cart-is-empty-false ~ .header-cart-inner-wrap .header-cart-button::before {
    content: "\f07a";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-style: normal;
    display: inline-block;
    vertical-align: middle;
    padding-top: 1px !important;
    padding-left: 10px !important;
    text-align: center;
    vertical-align: middle;
}

/* Cart Empty Icon */
.header-cart-is-empty-true ~ .header-cart-inner-wrap .header-cart-button::before {
    content: "\f07a";
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-style: normal;
    display: inline-block;
    vertical-align: middle;
    opacity: 60%;
    padding-top: 1px !important;
    padding-left: 10px !important;
    text-align: center;
    vertical-align: middle;
}

/* Cart # Indicator */
.header-cart-total {
    display: none !important;
}

/* ---------- Navigation ---------- */
a[aria-current="page"] {
    color: white !important;
}

button.drawer-sub-toggle {
    color: white !important;
}

@media (max-width: 828px) {
    .button.wc-forward {
        margin-top: 10px !important;
    }
}

/* ---------- Cart Block ---------- */
.wc-block-cart__payment-options {
    display: none;
}

/* Override for active page (allow theme default) */
a[aria-current="page"] {
    color: black !important;
}
