/*
 Theme Name:   Bricks
 Theme URI:    https://muffingroup.com/betheme/
 Description:  Tema hijo de Betheme.
 Author:       Bricks Jewelry
 Author URI:   https://bricksjewelry.com/
 Template:     betheme
 Version:      1.0.1
 Text Domain:  bricks
*/
.codigo{
    color:rgb(107, 107, 104);
    font-family: "IBM Plex Mono", monospace;
    font-size: 12px;
    line-height: 1.5em;
    letter-spacing: 1px;
    font-weight: 400;
}
.titulo{
    font-size: 2em;
}
.mfn-header-menu .mfn-submenu{
    box-shadow:none!important;
}
#menu-movil{border-bottom:solid 1px #1C2327;}
#menu-movil li:first-child a{border-top:none;}
.mfn-menu-item-megamenu .column_hover_color:hover .titulo, .mfn-menu-item-megamenu .column_hover_color:hover .explorar{
    color:#fff!important;
}
.mfn-menu-item-megamenu .column_hover_color:hover .titulo, .mfn-menu-item-megamenu .column_hover_color:hover .codigo{
    color:##b8b7b2!important;
}
.mfn-language-switcher ul li.wpml-ls-current-language a{background:#0B0B0B;
    color:#fff!important;
}
.mfn-language-switcher ul li a:hover{text-decoration:none;}
/* Newsletter (formulario suscripcion ES 116 / EN 326 / FR 327, en cualquier pagina): email y boton unidos, aceptacion debajo */
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) > p{
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    column-gap:0;
    align-items:start;
    position:relative;
    margin-bottom:0;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) span.wpcf7-form-control-wrap {margin-bottom:0;}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) > p > br{
    display:none;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) > p > label{
    grid-column:1;
    grid-row:2;
    margin:0;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) > p > label.bj-nombre{
    grid-column:1 / -1;
    grid-row:1;
    margin:0 0 20px;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) > p > label input:is([type="email"],[type="text"]){
    width:100%;
    height:56px;
    margin:0;
    padding:0 20px!important;
    border:1px solid #0B0B0B;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    color:#0B0B0B;
    font-family:"League Spartan", sans-serif;
    font-size:16px;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) > p > label input[type="email"]{
    border-right:0;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) > p > label input:is([type="email"],[type="text"])::placeholder{
    color:#9B9B97;
    opacity:1;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) > p > label input:is([type="email"],[type="text"]):focus{
    outline:none;
    box-shadow:inset 0 -2px 0 #0B0B0B;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) > p > .wpcf7-submit{
    grid-column:2;
    grid-row:2;
    height:56px;
    margin:0;
    padding:0 30px;
    border:1px solid #0B0B0B;
    border-radius:0;
    background:#0B0B0B;
    color:#fff;
    font-family:"League Spartan", sans-serif;
    font-size:12px;
    letter-spacing:0.28em;
    text-transform:uppercase;
    cursor:pointer;
    transition:background-color .2s ease;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) > p > .wpcf7-submit:hover,
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) > p > .wpcf7-submit:focus-visible{
    background:#333331;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) > p > .wpcf7-submit:disabled{
    /* Desactivado hasta marcar la aceptacion: atenuado para que se note */
    border-color:#0B0B0B;
    background:#0B0B0B;
    color:#fff;
    opacity:0.35;
    cursor:not-allowed;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) > p > .wpcf7-form-control-wrap[data-name="gdpr"]{
    grid-column:1 / -1;
    grid-row:3;
    margin-top:18px;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) .wpcf7-acceptance .wpcf7-list-item{
    margin:0;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) .wpcf7-acceptance label{
    display:flex;
    align-items:center;
    gap:12px;
    cursor:pointer;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) .wpcf7-acceptance input[type="checkbox"]{
    -webkit-appearance:none;
    appearance:none;
    flex:none;
    width:16px;
    height:16px;
    margin:0;
    border:1px solid #8E8E8A;
    border-radius:2px;
    background:#fff;
    cursor:pointer;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) .wpcf7-acceptance input[type="checkbox"]:checked{
    border-color:#0B0B0B;
    background:#0B0B0B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) .wpcf7-acceptance input[type="checkbox"]:focus-visible{
    outline:2px solid #0B0B0B;
    outline-offset:2px;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) .wpcf7-acceptance .wpcf7-list-item-label{
    font-size:14px;
    line-height:1.4;
    color:#55554F;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) .wpcf7-acceptance .wpcf7-list-item-label a{
    color:#0B0B0B;
    text-decoration:underline;
    text-underline-offset:2px;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) .wpcf7-not-valid-tip{
    /* !important: Betheme convierte el aviso en un cuadro rojo de 44px con el texto oculto */
    position:static!important;
    left:auto!important;
    top:auto!important;
    width:auto!important;
    height:auto!important;
    margin:6px 0 0!important;
    padding:0!important;
    background:none!important;
    color:#B3261E;
    font-size:13px;
    line-height:1.4;
    text-indent:0!important;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) .wpcf7-not-valid-tip::before,
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) .wpcf7-not-valid-tip::after{
    content:none;
    display:none;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) input.wpcf7-not-valid{
    border-color:#B3261E;
}
form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) > p > .wpcf7-spinner{
    position:absolute;
    right:0;
    top:100%;
    margin:4px 0 0;
}
@media (max-width: 479px){
    form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) > p > .wpcf7-submit{padding:0 18px;}
    form.wpcf7-form:has(input[name="_wpcf7"]:is([value="116"],[value="326"],[value="327"])) > p > label input:is([type="email"],[type="text"]){padding:0 14px!important;}
}
form.wpcf7-form input[type="text"], form.wpcf7-form input[type="email"]{
    border-width:0 0 1px 0;
    padding:10px 2px!important;
    font-family: 'IBM Plex Mono';
    font-size:15px;
}
form.wpcf7-form p{margin-bottom:25px;}
.wpcf7-list-item {
    margin: 20px 0 0 0;
}
.wpcf7-acceptance .wpcf7-list-item-label{
    font-weight:400;
    font-size:0.85em;
    line-height:1em;
}
/* Footer */
.footer-copy-center #Footer .footer_copy .copyright{margin-bottom:0;}
.footer-copy-center #Footer .footer_copy .mcb-column-inner{margin-bottom:0;}
.woocommerce ul.products{margin-bottom:0;}
.mfn-header-tmpl .mfn-icon-box-right .icon-wrapper {
    margin: 0 0 0 5px!important;
}

/*.woocommerce div.product div.images img, .woocommerce-page div.product div.images img{margin-left:20px;}*/
.woocommerce .mfn-product-gallery.mfn-mim-0{}

.woocommerce ul.products li.mfn-product-li-item > .mfn-li-product-row-button a{
    width: 100%;
    text-align: center;
    margin-top:10px!important;
}
.mfn-header-tmpl .mfn-icon-box-right .icon-wrapper {
    margin: 0 0 0 5px;
}
.button {
    text-transform:uppercase
}
.woocommerce table.shop_table td.actions .coupon .input-text{
    letter-spacing:0!important;
}
.bricks-sticky-atc{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    background:#fff;
    border-top:1px solid #e6e6e6;
    padding:12px 20px;
    transform:translateY(100%);
    opacity:0;
    transition:transform .3s ease, opacity .3s ease;
    pointer-events:none;
}
.bricks-sticky-atc.is-visible{
    transform:translateY(0);
    opacity:1;
    pointer-events:auto;
}
.bricks-sticky-atc__product{
    display:flex;
    align-items:center;
    gap:12px;
    min-width:0;
}
.bricks-sticky-atc__product img{
    width:48px;
    height:48px;
    object-fit:cover;
    flex-shrink:0;
}
.bricks-sticky-atc__info{
    display:flex;
    flex-direction:column;
    min-width:0;
}
.bricks-sticky-atc__title{
    font-weight:600;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.bricks-sticky-atc__price{
    font-size:14px;
    color:#555;
}
.bricks-sticky-atc__button{
    flex-shrink:0;
    background:#000;
    color:#fff;
    border:1px solid #000;
    padding:12px 26px;
    text-transform:uppercase;
    cursor:pointer;
}
.bricks-sticky-atc__button:hover{
    background:#fff;
    color:#000;
}
@media (max-width:600px){
    .bricks-sticky-atc__price{display:none;}
}
@media only screen and (min-width: 768px) {
    .woocommerce ul.products li.mfn-product-li-item > .mfn-li-product-row-title{
        margin-right:0;
    }
    .woocommerce ul.products li.mfn-product-li-item > .mfn-li-product-row-price{
        margin:0;
        text-align:right;
        margin-top:-28px;
    }
    .woocommerce ul.products li.mfn-product-li-item > .mfn-li-product-row-title{
        margin-right:70px;
    }
    #mfn-header-template .mcb-item-header_icon-inner .toggle-mfn-cart .icon-wrapper .header-cart-count:before{
        content: "(";
        padding-right: 3px;
    }
    #mfn-header-template .mcb-item-header_icon-inner .toggle-mfn-cart .icon-wrapper .header-cart-count:after{
        content: ")";
        padding-left: 3px;
    }
}
@media only screen and (max-width: 767px) {
    .woocommerce .products_wrapper ul.products:not(.mfn-masonry-layout, .mfn-list-layout, .mfn-list_2-layout) li.product {
        margin: 0!important;
    }
}

/* Radios de "Motivo" (Contact Form 7) con aspecto de botones */
.labelcontacto{
    font-family: "IBM Plex Mono", monospace;
    font-size: 13px;
    letter-spacing: 0.16em;
    color: rgb(107, 107, 104);
    margin-bottom:0;
}
.motivo-botones .wpcf7-list-item{
    margin:0;
}
.motivo-botones{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}
.motivo-botones .wpcf7-list-item label{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    position:relative;
    padding:10px 18px;
    border:1px solid #111;
    cursor:pointer;
    font-size:15px;
    line-height:1;
    transition:background-color .15s ease, color .15s ease;
    font-weight:400;
    margin-bottom:0!important;
}
.motivo-botones .wpcf7-list-item input[type="radio"]{
    position:absolute;
    opacity:0;
    width:1px;
    height:1px;
    margin:0;
    pointer-events:none;
}
.motivo-botones .wpcf7-list-item label:hover{
    background:#f2f2f2;
}
.motivo-botones .wpcf7-list-item label:has(input[type="radio"]:checked){
    background:#111;
    border-color:#111;
    color:#fff;
}
.motivo-botones .wpcf7-list-item input[type="radio"]:focus-visible + .wpcf7-list-item-label{
    outline:2px solid #111;
    outline-offset:3px;
}


/* ===== Submenu "Colecciones" (shortcode [bricks_colecciones]) ===== */

/* Contenedor del megamenu de Betheme: ancho completo y sin espaciados propios */
.mfn-menu-item-megamenu:has(.bj-col-panel){
    padding:0;
    background:#fdfdfc;
    box-shadow:none;
}
.mfn-menu-item-megamenu:has(.bj-col-panel) .mfn-megamenu-tmpl-builder,
.mfn-menu-item-megamenu:has(.bj-col-panel) .section_wrapper{
    max-width:none;
    padding:0;
}
.mfn-menu-item-megamenu:has(.bj-col-panel) .mcb-section,
.mfn-menu-item-megamenu:has(.bj-col-panel) .mcb-wrap-inner,
.mfn-menu-item-megamenu:has(.bj-col-panel) .mcb-column-inner{
    padding:0;
    margin:0;
}
.woocommerce .tagged_as a{
    text-transform:none;
    letter-spacing:0;
}
/* Boton "Colecciones": far fa-circle pasa a far fa-dot-circle en hover */
.mfn-menu-item-has-megamenu:hover > a .mfn-menu-subicon i.fa-circle::before,
.mfn-menu-item-has-megamenu:focus-within > a .mfn-menu-subicon i.fa-circle::before{
    content:"\f192";
}

/* Panel */
.bj-col-panel{
    display:grid;
    grid-template-columns:minmax(200px, .7fr) 1fr 1fr;
    background:#fdfdfc;
    color:#0b0b0b;
    border-top:1px solid #e6e5e1;
    border-bottom:1px solid #0b0b0b;
    font-family:"League Spartan", "Futura", sans-serif;
    text-align:left;
    -webkit-font-smoothing:antialiased;
}
.bj-col-panel *,
.bj-col-panel *::before,
.bj-col-panel *::after{
    box-sizing:border-box;
}
.bj-col-panel a,
.bj-col-panel a:hover{
    color:inherit;
    text-decoration:none;
}
.bj-col-intro{
    padding:32px 48px;
    border-right:1px solid #e6e5e1;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    gap:28px;
}
.bj-col-intro p{
    margin:14px 0 0;
    font-size:15px;
    line-height:1.55;
    color:#3d3d3a;
    max-width:24ch;
}
.bj-col-panel .bj-mono{
    font-family:"IBM Plex Mono", monospace;
    font-size:11px;
    line-height:1.4;
    letter-spacing:.14em;
    text-transform:uppercase;
}
.bj-col-panel .bj-eyebrow{
    color:#6b6b68;
    letter-spacing:.2em;
}
.bj-col-panel .bj-link{
    align-self:flex-start;
    border-bottom:1px solid #0b0b0b;
    padding-bottom:4px;
}

/* Tarjeta de coleccion */
.bj-col-panel .bj-card{
    --ink:#0b0b0b;
    --bg:#fdfdfc;
    --muted:#6b6b68;
    padding:32px;
    border-right:1px solid #e6e5e1;
    display:grid;
    grid-template-columns:minmax(0, 1fr) auto;
    gap:28px;
    align-items:start;
    background:var(--bg);
    color:var(--ink);
    transition:background .25s, color .25s;
}
.bj-col-panel .bj-card:last-child{
    border-right:0;
}
.bj-col-panel .bj-card:hover,
.bj-col-panel .bj-card:focus-visible{
    --ink:#fdfdfc;
    --bg:#1c2327;
    --muted:#b8b7b2;
    color:var(--ink);
    outline:none;
}
.bj-card-text{
    display:flex;
    flex-direction:column;
    gap:14px;
}
.bj-card-meta{
    color:var(--muted);
}
.bj-card-title{
    font-size:34px;
    line-height:1;
    letter-spacing:-.03em;
    font-weight:500;
}
.bj-card-desc{
    font-size:14px;
    line-height:1.6;
    color:var(--muted);
    max-width:30ch;
}
.bj-card-cta{
    margin-top:8px;
}

/* Iconos */
.bj-icon{
    width:96px;
    flex:none;
    display:flex;
    flex-direction:column;
    align-items:center;
}
.bj-icon .caption{
    font-family:"IBM Plex Mono", monospace;
    font-size:10px;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--muted);
    margin-top:10px;
    text-align:center;
    line-height:1.4;
}
.bj-icon .piece{
    display:flex;
    flex-direction:column;
    align-items:center;
    transition:transform .6s cubic-bezier(.55, 0, .2, 1);
}
.bj-icon .stud{
    display:block;
    width:23px;
    height:8px;
}
.bj-icon .body{
    display:block;
    width:37px;
    height:15px;
}
.bj-icon .silver{
    background:#e4e6ea;
}

/* Bricks eXchange: base de plata + pieza que se encaja */
.bj-icon--x .piece{
    position:relative;
    z-index:1;
}
.bj-icon--x .stud,
.bj-icon--x .body{
    background:var(--ink);
    transition:background .25s;
}
.bj-icon--x .body{
    height:15.5px;
}
.bj-icon--x .base{
    position:relative;
    z-index:2;
    width:48px;
    height:21px;
    margin-top:12.5px;
    border:1px solid var(--ink);
    transition:border-color .25s;
}
.bj-card:hover .bj-icon--x .piece,
.bj-card:focus-visible .bj-icon--x .piece{
    transform:translateY(28px);
}

/* Play Brick: pieza de plata autonoma + encaje opcional (discontinua) */
.bj-icon--p .ghost{
    position:relative;
    z-index:2;
}
.bj-icon--p .ghost .stud,
.bj-icon--p .ghost .body{
    border:1px dashed var(--ink);
    background:var(--bg);
    transition:background .25s, border-color .25s;
}
.bj-icon--p .ghost .stud{
    border-bottom:0;
}
.bj-icon--p .solid{
    position:relative;
    z-index:1;
    margin-top:9.5px;
}
.bj-icon--p .solid .stud,
.bj-icon--p .solid .body{
    border:1px solid var(--ink);
    transition:border-color .25s;
}
.bj-icon--p .solid .stud{
    border-bottom:0;
}
.bj-card:hover .bj-icon--p .ghost,
.bj-card:focus-visible .bj-icon--p .ghost{
    transform:translateY(17.5px);
}
.mfn-menu-icon-left .mfn-menu-link > .menu-sub {
    margin-left: 5px;
}
/* En hover las piezas de plata mantienen el borde negro */
.bj-card:hover .bj-icon--x .base,
.bj-card:focus-visible .bj-icon--x .base,
.bj-card:hover .bj-icon--p .solid .stud,
.bj-card:focus-visible .bj-icon--p .solid .stud,
.bj-card:hover .bj-icon--p .solid .body,
.bj-card:focus-visible .bj-icon--p .solid .body{
    border-color:#0b0b0b;
}

@media (prefers-reduced-motion: reduce){
    .bj-icon .piece,
    .bj-col-panel .bj-card{
        transition:none;
    }
}
@media (max-width: 900px){
    .bj-col-panel{
        grid-template-columns:1fr;
    }
    .bj-col-intro,
    .bj-col-panel .bj-card{
        border-right:0;
        border-bottom:1px solid #e6e5e1;
    }
    .bj-col-intro{
        padding:28px 24px;
    }
    .bj-col-panel .bj-card{
        padding:28px 24px;
    }
}
