/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/


body {
    font-family: "Poppins";
    font-size: 16px;
    line-height: 1.6;
    text-align: left;
    font-weight: 400;
}

.button,
.woocommerce .button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wp-block-button__link {
    font-size: 16px;
    color: #ffffff;
    font-family: "Poppins";
    text-transform: uppercase;
    font-weight: 600;
    line-height: 32px;
    background-color: #8c9770;
    border: none;
    border-radius: 24px;
}

.button:hover,
.woocommerce .button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wp-block-button__link:hover {
    background-color: #aab295;
}

.title {
    font-size: 48px;
    font-family: "Oswald";
    line-height: 1;
    text-transform: uppercase;
    color: #4b3e3e;
}

.woocommerce-loop-product__title {
    font-size: 16px;
    font-family: "Poppins";
    line-height: 1.6;
    text-align: left;
    font-weight: 400;
}

.price {
    font-size: 24px;
    font-family: "Poppins";
    line-height: 1.6;
    text-align: left;
    font-weight: 600;
}

/* Egyedi méret mezők stílus */
.custom-dimensions-fields {
    margin: 2rem 0;
}

.custom-dimensions-fields label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #333;
}

.custom-dimensions-fields input[type="number"] {
    width: 100%;
    max-width: 200px;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.custom-dimensions-fields input[type="number"]:focus {
    border-color: #777;
    outline: none;
}

.custom-dimensions-fields p.note {
    margin-top: 16px;
    color: #666;
    line-height: 1.6;
    font-weight: 400;
}

.custom-dimensions-fields br {
    display: none;
}

.hentry h1 {
    margin-top: 32px;
    margin-bottom: 24px;
}

.alignwide {
    margin-left: 0;
    max-width: 100%;
    position: relative;
    width: 100%;
}

.woocommerce .woocommerce-notice {
    text-align: left;
}

.woocommerce-order-overview.order_details+p {
    text-align: left;
}

.bricks-post-header {
    margin-top: 48px !important;
    margin-bottom: 32px !important;
    min-height: 0 !important;
}

article h3 {
    font-size: 20px;
}

article img {
    margin: 16px auto;
}

article .post-meta {
    margin: 16px 0;
    font-weight: 600;
}

.wc-block-components-radio-control__label img{
    margin:16px 0;
}

ul.custom-accordion {
    margin-bottom: 36px;
}

li.accordion-item {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.custom-accordion .accordion-title-wrapper {
    cursor: pointer;
    padding-top: 16px;
    padding-bottom: 16px;
}

.custom-accordion .accordion-title h3 {
    font-size: 24px;
    text-transform: none;
    font-family: "Poppins";
    font-weight: 700;
}

.custom-accordion .accordion-subtitle {
    font-weight: 400;
    margin-top: 0.25rem;
    margin-top: 0.25rem;
}

.custom-accordion .accordion-content-wrapper {
    margin-top: 1rem;
}

.custom-dimensions-fields input[type="number"] {
    max-width: 200px;
    padding: 0.4rem 0.6rem;
}

.add-door-wrapper label {
    font-size: 18px;
    font-weight: 600;
    color: inherit;
    margin-bottom: 8px;
}

.add-door-wrapper label span{
    font-size: 14px;
    font-weight: 400;
    color: #363636;
}

.add-door-wrapper input[type="checkbox"]{
    margin-right: 4px;
}

.door-color-wrapper {
    display: none;
    margin-bottom: 12px;
}

.wc-block-components-checkbox .wc-block-components-checkbox__label {
    line-height: 1.5em;
    vertical-align: middle;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
}

.wc-block-components-checkbox .wc-block-components-checkbox__label a{
    font-weight: 600;
}

.wc-block-components-checkbox label {
    align-items: center !important;
}

.brxe-woocommerce-breadcrumbs {
    position: absolute;
    max-width: 400px;
}

#brxe-e9907f {
    margin-top: 32px !important;
}

.woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-disabled,
.woocommerce-variation-add-to-cart.variations_button.woocommerce-variation-add-to-cart-enabled {
    display: flex;
    justify-content: space-between;
    flex-direction: row-reverse;
}

a.reset_variations {
    display: none !important;
}

.woocommerce-variation-price {
    margin-top: -64px;
    margin-bottom: -20px;
}

/* --- Kompakt termékoldal: Ajtó & Egyedi méret kártyák --- */

/* Ajtó kártya — borderes chip, mint a kiegészítők */
.single-product .add-door-wrapper {
    border: 1.5px solid #d9d9d9;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 6px 0 4px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.single-product .add-door-wrapper:has(#add_door:checked) {
    border-color: #8c9770;
    background-color: rgba(140, 151, 112, 0.06);
}

/* Ajtó szín dropdown — rejtett a termékoldalon, konfigurátorba kerül */
.single-product .add-door-wrapper .door-color-wrapper {
    display: none !important;
}

/* Ajtó label: checkbox + szöveg egy sorban */
.single-product .add-door-wrapper > label {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #4b3e3e;
    cursor: pointer;
    margin: 0;
    line-height: 1.4;
}

.single-product .add-door-wrapper > label input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
}

/* A <br> után a span új sorba kerül — a br megtartjuk, de a span full width */
/* Egyedi méret — kevesebb space felette */

/* Egyedi méret kártya — ugyanaz a stílus mint az ajtó */
.single-product .custom-accordion {
    margin: 0 0 4px;
    padding: 0;
    list-style: none;
}

.single-product .custom-accordion .accordion-item {
    border: 1.5px solid #d9d9d9;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.single-product .custom-accordion .accordion-item:has(.accordion-content-wrapper[style*="block"]) {
    border-color: #8c9770;
    background-color: rgba(140, 151, 112, 0.06);
}

.single-product .custom-accordion .accordion-title-wrapper {
    padding: 0;
    cursor: pointer;
}

.single-product .custom-accordion .accordion-title h3.title {
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: none;
    color: #4b3e3e;
    margin: 0;
    line-height: 1.4;
}

.single-product .custom-accordion .accordion-subtitle {
    display: none;
}

/* Egyedi méret tartalom — rejtett a termékoldalon, konfigurátorba kerül */
.single-product .custom-accordion .accordion-content-wrapper {
    display: none !important;
}

/* Smooth scroll mindenkinek */
html { scroll-behavior: smooth; }

/* Globális offset a header aktuális magasságával */
html { scroll-padding-top: var(--header-h, 80px); }

/* Szekció szintű finomhangolás */
.anchor-target { scroll-margin-top: var(--header-h, 80px); }

/* Admin bar korrekció (opciós) */
body.admin-bar html { scroll-padding-top: calc(var(--header-h, 80px) + 32px); }
@media (max-width: 782px) {
    body.admin-bar html { scroll-padding-top: calc(var(--header-h, 80px) + 46px); }
}
