/*
 Theme Name: Hello Child
 Theme URI: https://elementor.com/hello-theme/
 Description: Tema filho do Hello Elementor
 Author: Seu Nome
 Author URI: https://lembrancinhasdefesta.com.br
 Template: hello-elementor
 Version: 1.0.0
 Text Domain: hello-child
*/

/* =========================================
HEADER PREMIUM - REI DOS MIMOS
========================================= */

.rm-header-premium,
.rm-header-premium.e-con,
.elementor-element.rm-header-premium {

    position: fixed !important;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 9999 !important;

    background-color: transparent !important;
    background-image: none !important;

    transform: translateY(0);

    transition:
        transform 0.35s ease,
        background-color 0.35s ease,
        box-shadow 0.35s ease,
        backdrop-filter 0.35s ease,
        border-color 0.35s ease;
}

/* CENTRALIZA CONTEÚDO HEADER */

.rm-header-premium.e-con {
    align-items: center !important;
}

.rm-header-premium > .e-con-inner {
    align-items: center !important;
}

.rm-header-premium .e-con {
    align-items: center !important;
}

/* =========================================
ESTADO TOPO
========================================= */

.rm-header-premium.rm-header-top,
.rm-header-premium.e-con.rm-header-top,
.elementor-element.rm-header-premium.rm-header-top {

	background-color:
        rgba(0, 0, 0, 0.28) !important;

    background-image: none !important;

    border-bottom:
        1px solid rgba(255,255,255,0.05) !important;

    box-shadow: none !important;

    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
}

/* =========================================
ESTADO SCROLLED
========================================= */

.rm-header-premium.rm-header-scrolled,
.rm-header-premium.e-con.rm-header-scrolled,
.elementor-element.rm-header-premium.rm-header-scrolled {

    background-color:
        rgba(75, 28, 15, 0.88) !important;

    background-image: none !important;

    border-bottom:
        1px solid rgba(255,255,255,0.08) !important;

    box-shadow:
        0 8px 30px rgba(0,0,0,0.18) !important;

    backdrop-filter: blur(10px) !important;

    -webkit-backdrop-filter: blur(10px) !important;
}

/* =========================================
REMOVE FUNDO INTERNO DO ELEMENTOR
========================================= */

.rm-header-premium.rm-header-scrolled > .e-con-inner,
.rm-header-premium.rm-header-scrolled .elementor-container,
.rm-header-premium.rm-header-top > .e-con-inner,
.rm-header-premium.rm-header-top .elementor-container {

    background: transparent !important;
}

/* =========================================
HEADER ESCONDIDO
========================================= */

.rm-header-premium.rm-header-hidden {
    transform: translateY(-110%) !important;
}

/* =========================================
HEADER VISÍVEL
========================================= */

.rm-header-premium.rm-header-visible {
    transform: translateY(0) !important;
}

/* =========================================
LINKS E ÍCONES
========================================= */

.rm-header-premium a,
.rm-header-premium .elementor-icon,
.rm-header-premium svg,
.rm-header-premium i {

    color: #ffffff !important;

    fill: #ffffff !important;

    transition:
        color 0.25s ease,
        fill 0.25s ease;
}

/* =========================================
HOVER
========================================= */

.rm-header-premium a:hover,
.rm-header-premium .elementor-icon:hover,
.rm-header-premium i:hover {

    color: #C48041 !important;
}

/* =========================================
ALTURA HEADER
========================================= */

.rm-header-premium {
    min-height: 76px;
}

/* =========================================
OFF-CANVAS BASE
========================================= */

.rm-offcanvas-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    z-index: 99998;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.rm-offcanvas-overlay.rm-active {
    opacity: 1 !important;
    visibility: visible !important;
}

.rm-offcanvas-panel {
    position: fixed !important;
    top: 0;
    right: 0;
    width: min(420px, 92vw);
    height: 100vh;
    z-index: 999999 !important;
    transform: translateX(105%);
}

.rm-offcanvas-panel.rm-active {
    transform: translateX(0) !important;
}

.rm-offcanvas-close {
    position: absolute;
    top: 18px;
    right: 20px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #4B1C0F;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.rm-offcanvas-header {
    padding-right: 42px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(75,28,15,0.12);
    padding-bottom: 18px;
}

.rm-offcanvas-header h3 {
    margin: 0 0 8px;
    color: #4B1C0F;
    font-size: 26px;
    font-weight: 600;
}

.rm-offcanvas-header p {
    margin: 0;
    color: #7A6248;
    font-size: 14px;
}

.rm-offcanvas-content {
    color: #4B1C0F;
}

/* BOTÕES INTERNOS */

.rm-offcanvas-panel .button,
.rm-offcanvas-button,
.rm-offcanvas-panel button,
.rm-offcanvas-panel input[type="submit"] {
    background: #4B1C0F !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 12px !important;
    padding: 13px 18px !important;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.rm-offcanvas-panel .button:hover,
.rm-offcanvas-button:hover,
.rm-offcanvas-panel button:hover,
.rm-offcanvas-panel input[type="submit"]:hover {
    background: #6A2A17 !important;
    color: #fff !important;
}

/* LINKS */

.rm-offcanvas-panel a {
    color: #4B1C0F;
}

.rm-offcanvas-panel a:hover {
    color: #C48041;
}

/* LOGIN FORM */

.rm-offcanvas-login .woocommerce {
    margin: 0;
}

.rm-offcanvas-login form.login,
.rm-offcanvas-login form.register {
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.rm-offcanvas-login input.input-text {
    border-radius: 10px;
    border: 1px solid #E6D7C3;
    padding: 12px;
}

/* MINI CART */

.rm-offcanvas-cart .woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rm-offcanvas-cart .woocommerce-mini-cart-item {
    border-bottom: 1px solid rgba(75,28,15,0.12);
    padding: 14px 0;
}

.rm-offcanvas-cart .woocommerce-mini-cart__total {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(75,28,15,0.18);
    color: #4B1C0F;
    font-size: 18px;
}

.rm-offcanvas-cart .woocommerce-Price-amount {
    color: #C48041;
    font-weight: 700;
}

.rm-offcanvas-cart .woocommerce-mini-cart__buttons {
    display: grid;
    gap: 10px;
}

body.rm-offcanvas-open {
    overflow: hidden;
}

.rm-open-cart,
.rm-open-login {
    cursor: pointer;
}


/* =========================================
BUSCA PREMIUM HEADER
========================================= */

form.rm-search-premium {
    position: relative !important;
    width: 46px !important;
    height: 46px !important;
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

form.rm-search-premium .rm-search-premium-input {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 46px !important;
    height: 46px !important;
    padding: 0 46px 0 18px !important;

    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;

    border: 1px solid transparent !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #4B1C0F !important;

    box-shadow: none !important;
    outline: none !important;

    transition:
        width 0.35s ease,
        opacity 0.25s ease,
        background-color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.25s ease;
}

form.rm-search-premium.rm-search-open .rm-search-premium-input,
form.rm-search-premium:hover .rm-search-premium-input,
form.rm-search-premium:focus-within .rm-search-premium-input {
    width: 300px !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;

    background: rgba(255,255,255,0.90) !important;
    border-color: rgba(75,28,15,0.18) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10) !important;

    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

form.rm-search-premium .rm-search-premium-input::placeholder {
    color: rgba(75,28,15,0.55) !important;
}

form.rm-search-premium .rm-search-premium-input:focus {
    border-color: rgba(196,128,65,0.45) !important;
    box-shadow: 0 0 0 4px rgba(196,128,65,0.12) !important;
}

form.rm-search-premium .rm-search-premium-button {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;

    width: 46px !important;
    height: 46px !important;
    min-width: 46px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    background: transparent !important;

	color: #FFFFFF !important;
    z-index: 999 !important;
    cursor: pointer !important;
}

form.rm-search-premium .rm-search-premium-icon {
    width: 17px !important;
    height: 17px !important;
    display: block !important;
    fill: currentColor !important;
    color: currentColor !important;
    transform: translateY(1px);
    transition:
        transform 0.25s ease,
        fill 0.25s ease;
}

form.rm-search-premium .rm-search-premium-button:hover {
    color: #C48041 !important;
}

form.rm-search-premium .rm-search-premium-button:hover .rm-search-premium-icon {
    transform: translateY(1px) scale(1.08);
}

form.rm-search-premium .rm-search-results {
    position: absolute;
    top: 54px;
    right: 0;
    width: 360px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s ease;
    z-index: 9999;
}

form.rm-search-premium .rm-search-results.rm-search-results-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.rm-search-result-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    border-bottom: 1px solid rgba(75,28,15,0.08);
}

.rm-search-result-item:hover {
    background: #F7F2EF;
}

.rm-search-result-thumb img {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 10px;
}

.rm-search-result-info strong {
    display: block;
    color: #4B1C0F;
    font-size: 14px;
    line-height: 1.25;
}

.rm-search-result-info small {
    color: #C48041;
    font-weight: 600;
}

.rm-search-empty {
    padding: 16px;
    color: #4B1C0F;
}

/* BUSCA PREMIUM - AJUSTE MOBILE */

@media (max-width: 767px) {
    form.rm-search-premium.rm-search-open .rm-search-premium-input,
    form.rm-search-premium:hover .rm-search-premium-input,
    form.rm-search-premium:focus-within .rm-search-premium-input {
        width: 240px !important;
        max-width: calc(100vw - 32px) !important;
    }

    form.rm-search-premium .rm-search-results {
        width: 300px !important;
        max-width: calc(100vw - 32px) !important;
        right: 0 !important;
    }
}