/*
Theme Name: WhiskyCentrum
Theme URI: https://frontendtanfolyam.hu/
Author: FrontendTanfolyam
Author URI: https://frontendtanfolyam.hu/pocsik-emese-frontend-fejleszto/
Description: Basic Block Theme by Emese Pocsik
Tags: one-column, custom-colors, custom-menu
Version: 1.0
Requires at least: 5.0
Tested up to: 5.4
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: whiskycentrum
*/

@media (prefers-color-scheme: dark) {
    html {
        color-scheme: light;
    }
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    position: relative;
}

@media only screen and (min-width: 768px) and (max-width: 1400px) {
    body {
        font-size: 1.25vw;
    }
}


header.wp-block-template-part {
    position: relative;
    z-index: 100;
}

iframe {
    margin: 0;
    display: block;
}

.wc-block-components-notices {
    margin: 0 !important;
}

.home-featured p {
    margin: 0.5rem 0;
}


.reflection {
    position: relative;
    margin: -0.5vw 0 0 0;
    z-index: 0;
}

.reflection img {
    height: 2rem;
    object-position: bottom;
    -webkit-transform: scaleY(-1);
    -moz-transform: scaleY(-1);
    -ms-transform: scaleY(-1);
    -o-transform: scaleY(-1);
    transform: scaleY(-1);
    /* IE fallback */
    filter: flipv;
    /* Átlátszóság */
    opacity: 0.3;
    filter: alpha(opacity='30');
    -webkit-filter: blur(1px);
    filter: blur(1px);
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    mask-repeat: no-repeat;
    mask-size: 100% 100%;
}

.tabs.wc-tabs {
    display: none;
}

.woocommerce table.shop_attributes {
    border-top: none !important;
}

.woocommerce-product-attributes {
    text-align: left;
    font-size: 1rem;
    margin-bottom: 0 !important;
}

.woocommerce-product-attributes tr {
    border-bottom: #000 solid 1px !important;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
    background: none !important;
    padding: 0 !important;
    border-bottom: none !important;
    font-style: normal !important;
    vertical-align: top;
    display: inline;
}

.woocommerce table.shop_attributes th {
    width: max-content;
    padding-right: 0.5rem !important;
    white-space: nowrap;
}

.woocommerce table.shop_attributes td p {
    margin: 0;
    padding: 0 !important;
    display: inline;
}

.woocommerce table.shop_attributes th:after {
    content: ":";
}

.wp-block-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: clamp(1rem, 3vw, 2rem);
}

.wp-block-tag-cloud a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-indent: -10000%;
    overflow: hidden;
    padding: 1rem;
    border: solid 1px;
    font-size: 1px !important
}

.wp-block-tag-cloud a img {

    max-width: 140px;
    max-height: 80px;
    object-fit: contain;
    min-height: 60px;
    min-width: 80px;
}

.wc-block-product-categories-list {
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    list-style-type: none;
}

.wc-block-product-categories-list-item a {
    position: relative;
    margin: 0;
    padding: 0.5rem 0.75rem !important;
    font-size: 1rem !important;
    background: var(--wp--preset--color--neutral);
}



.wp-block-woocommerce-product-template li > .wp-block-group {
    height: 100%;
}



.wp-block-woocommerce-product-template li > .wp-block-group .wc-block-components-product-summary {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
}


.logo.wp-block-site-logo img {
    width: 700px;
}


#af-wrapper .main-title {
    font-family: initial;
    font-size: initial;
    font-weight: initial;
}

.wp-block-group.woocommerce.product {
    margin-top: 0;
}

@media only screen and (max-width: 480px) {
    .wp-block-woocommerce-product-template {
        gap: 8px;
    }

    .wp-block-woocommerce-product-template li > .wp-block-group {
        --wp--preset--spacing--l: 0.75rem;
        --wp--preset--spacing--xl: 0.75rem;
    }

    .wp-block-woocommerce-product-template li > .wp-block-group h3 {
        font-size: 1.25rem !important;
    }

    .wp-block-woocommerce-product-template li > .wp-block-group .wc-block-components-product-summary {

        font-size: 12px !important;
        line-height: 1.3;
        -webkit-line-clamp: 5;
    }


}

#radio-control-wc-payment-method-options-barion__label {
    display: block;

}

#radio-control-wc-payment-method-options-barion__label > div {
    display: flex;
    justify-content: space-between;
}

.wp-block-woocommerce-checkout-payment-block .wc-block-components-radio-control-accordion-content {
    font-size: smaller;
    font-style: italic;
    color: #777;
}

/* GENERAL */
#af-wrapper,

#af-wrapper .main-title {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

#af-wrapper .main-title {
    color: var(--wp--preset--color--secondary);
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 700;
    line-height: 1.2;
    font-size: clamp(2rem, 5vw, 3rem);
}



.woocommerce-checkout .wc-block-components-product-metadata {
    display: none !important
}

.wc-block-components-radio-control--highlight-checked {
    background: var(--wp--preset--color--neutral);
}




/* Termékkártya hover effect - emelkedés + árnyék */
.wc-block-product {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wc-block-product:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.wc-block-product .wc-block-components-product-image img {
    transition: transform 0.4s ease;
}

.wc-block-product:hover .wc-block-components-product-image:not(.reflection) img {
    transform: scale(1.15);
}


/* Mobilon elrejtjük az inputot */
@media (max-width: 768px) {

    header .wp-block-columns.is-layout-flex {
        gap: 1.25rem;
    }

    header .wp-block-group.is-layout-flex {
        gap: 0;
    }

    #main-menu {
        margin: 0 !important;
        padding: 0 !important;
        border: none;
        display: inline-flex;
        position: relative;
        top: -2rem;
    }

    header .wp-block-search__inside-wrapper {
        display: none;
    }

    #float-cart {
        position: fixed;
        z-index: 9999;
        bottom: 1rem;
        right: 1rem;
        border-radius: 3rem;
        padding-right: var(--wp--preset--spacing--xs);
        padding-left: var(--wp--preset--spacing--xs);
        box-shadow: var(--wp--preset--shadow--sm);
        background-color: var(--wp--preset--color--tertiary) !important;
    }
}




input[type="checkbox"],
input[type="radio"] {
    background: #fff;
    border: solid 1px color-mix(in srgb, currentColor 30%, transparent);
    height: 22px;
    overflow: hidden;
    position: static;
    vertical-align: text-bottom;
    width: 22px;
    cursor: pointer;
    margin: 0 8px 0 0;
}

#gls-map-button {
    
     background: #ffc107;
        color: #000;
        border: none;
        padding: 8px 15px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 4px;
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        gap: 8px;
}