/*
 Theme Name:   Astra Child
 Theme URI:    https://wpastra.com/
 Description:  Astra Child Theme
 Author:       Tolvaj Sándor
 Author URI:   https://businessbloom.consulting
 Template:     astra
 Version:      1.15.5
 Text Domain:  astra-child
*/

.ast-desktop .ast-primary-header-bar .main-header-menu > .menu-item {
    line-height: 60px;
}
.ast-mobile-header-wrap .ast-primary-header-bar, .ast-primary-header-bar .site-primary-header-wrap {
    min-height: 60px;
}
.ast-logo-title-inline .ast-site-identity {
    padding: 8px 0;
}
.site-below-footer-wrap {
    padding-top: 0px;
    padding-bottom: 0;
}
.ast-footer-copyright p,
.ast-footer-copyright p a {
	font-size: 14px;
}
.ast-footer-copyright p a {
	color: #fff;
	text-decoration: underline;
}
.ast-footer-copyright p a:hover {
	text-decoration: none;
}


/* Országválasztó mező elrejtése a pénztárban */
#billing_country_field,
#shipping_country_field {
    display: none !important;
}

.woocommerce-MyAccount-navigation ul {
    padding-left: 0;
}

/* Termékoldali fő kép kényszerített négyzetesítése */
.woocommerce-product-gallery__image img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
    height: 100%;
}
.single-product h1 {
    font-size: 2.6em;
}
@media (max-width: 921px) {
    .single-product h1 {
       font-size: 1.6em;
   }
}
.woocommerce-SavedPaymentMethods-saveNew {
    padding-left: 26px !important;
}
.woocommerce-SavedPaymentMethods-saveNew input {
    margin: 0 8px 0 -26px !important;
}

/* Gomb alapjainak eltüntetése */
.show-password-input {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    min-height: auto !important;
    cursor: pointer;
    /* Pozicionálás, ha elcsúszna az input mellett: */
    display: inline-flex;
    align-items: center;
}

/* A tartalom beinjektálása */
.show-password-input::after {
    content: "Mutat"; /* Ezt a szöveget írja ki */
    color: #0B6477; /* Szín (állítsd át a brand színedre) */
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline; /* Hogy linknek tűnjön */
}

/* Ha fölé viszed az egeret */
.show-password-input:hover::after {
    color: #14919B;
    text-decoration: none;
}

.moderncart-slide-out-coupon-form-button, .moderncart-btn-upsell.moderncart_add_to_cart_button, form.cart .single_add_to_cart_button {
    text-transform: initial;
}
.ast-single-entry-banner[data-post-type="page"] {
    padding-top: 1em;
    padding-bottom: 1em;
}

.hero-bg-img-wrapper {
    position: relative;
    overflow: hidden;
}
.hero-bg-img {
    width: 600px;
    height: auto;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
}
.hero-bg-img img {
   max-width: 10000px !important;
   width: 100% !important;
   height: auto !important;
}
@media screen and (max-width: 600px) {
    .hero-bg-img {
      width: 400px;
   }
}
.lightbutton a {
   transition: 200ms;
}
.lightbutton a:hover {
   background: #0B6477 !important;
   color: white !important;
}

/* A teljes doboz stílusa */
.payment-trust-bar {
    display: flex;
    flex-wrap: wrap; /* Mobilon engedi új sorba törni */
    align-items: center;
    justify-content: center; /* Középre igazítás */
    gap: 20px;
    padding: 20px 0;
}

/* A szövegek stílusa */
.trust-text, .secure-badge {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Az ikonok elrendezése */
.payment-icons {
    display: flex;
    gap: 30px;
    align-items: center;
}

/* Maguk a képek (logók) */
.payment-icons img {
    width: 80px; /* Egységes magasság */
    height: auto;
    filter: grayscale(100%); /* Fekete-fehér alapból */
    opacity: 0.6; /* Kicsit halványabb */
    transition: all 0.3s ease; /* Finom átmenet */
    cursor: pointer;
}

/* Ha ráviszed az egeret */
.payment-icons img:hover {
    filter: grayscale(0%); /* Visszakapja a színét */
    opacity: 1;
    transform: scale(1.05); /* Picit megnő */
}

/* Mobil nézet finomhangolása */
@media (max-width: 600px) {
    .payment-trust-bar {
        flex-direction: column; /* Egymás alá kerüljenek mobilon */
        gap: 10px;
    }
}

.woocommerce ul.products, .woocommerce-page ul.products {
    column-gap: 30px;
}

.woocommerce[class*="rel-up-columns-"] .site-main div.product .related.products ul.products li.product, .woocommerce-page .site-main ul.products li.product {
    border-radius: 8px;
    overflow: hidden;
}

.ast-woo-shop-product-description + .price {
    border-top: solid 1px #eee;
    margin-top: 6px;
    padding-top: 6px;
    display: block;
}

.home .products.columns-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: 30px;
    padding-left: 0;
}
.home ul.products li.product {
    display: flex;
    list-style: none outside;
    flex-direction: column;
    width: 100%;
    padding: 0;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    padding-bottom: 1.2em !important;
    margin-bottom: 25px;
background-color: white;
}

.home .ast-on-card-button {
    display: none;
}

.home ul.products li.product .button {
	display: inline-block;
	border: solid 2px #0B6477;
	transition: 200ms;
	box-shadow: var(--wp--preset--shadow--natural);
}
.home ul.products li.product .button:hover {
	background: white;
	color: #0B6477;
}

@media (max-width: 921px) {
    .home ul.products.columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 544px) {
    .home ul.products.columns-4 {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }
    .has-x-large-font-size { font-size: 28px !important; }
    
    :root {
       --wp--preset--spacing--20: 0.4rem;
       --wp--preset--spacing--30: 0.8rem;
       --wp--preset--spacing--40: 1.2rem;
       --wp--preset--spacing--50: 1.6rem;
       --wp--preset--spacing--60: 2.05rem;
       --wp--preset--spacing--70: 2.48rem;
       --wp--preset--spacing--80: 3.06rem
    }

    .woocommerce-loop-product__title { font-size: 1.4em !important; }
}

.woocommerce-checkout.woocommerce-order-received .woocommerce-order .woocommerce-order-details table.shop_table tr td a.woocommerce-button.button.wc_szamlazz_pdf.order-actions-button {
    color: white;
}
.woocommerce-checkout.woocommerce-order-received .woocommerce-order .woocommerce-order-details table.shop_table tr td a.woocommerce-button.button.wc_szamlazz_pdf.order-actions-button:hover {
    color:#0B6477;
}

.wp-block-accordion button {
    box-shadow: none !important;
}

.site-below-footer-wrap[data-section="section-below-footer-builder"] { border: none; }

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    line-height: 1;
}

.woocommerce-cart table.shop_table .woocommerce-Price-amount {
    white-space: nowrap;
}

.woocommerce-SavedPaymentMethods-saveNew.woocommerce-validated label {
    opacity: 1 !important;
    font-size: 14px !important;
    margin-top: -2px !important;
}
