/* Lista de nacimiento pública — rejilla tipo catálogo WooCommerce */
.brm-public-registry {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    background: transparent;
    border-radius: 0;
}

.brm-public-registry > h1 {
    margin-bottom: 0.35em;
}

.brm-registry-hero {
    margin: 0 0 1.5rem;
    padding: 50px 25px;
    border-radius: 8px;
    background-color: #f8f5ef;
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: cover;
    text-align: center;
}

.brm-registry-hero__text {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.618;
    color: #2f2b28;
}

.brm-registry-hero__text p {
    margin: 0 0 0.65em;
}

.brm-registry-hero__text p:last-child {
    margin-bottom: 0;
}

.brm-registry-hero__signature {
    margin-top: 1rem;
    font-size: clamp(2rem, 4.2vw, 3.4rem);
    line-height: 1.05;
    font-family: "Brush Script MT", "Segoe Script", "Lucida Handwriting", cursive;
    color: #5c3d2e;
}

.brm-public-registry ul.products {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
    clear: both;
}

.brm-public-registry ul.products::before,
.brm-public-registry ul.products::after {
    display: none;
}

.brm-public-registry ul.products li.product {
    float: none;
    width: auto;
    margin: 0;
    padding: 1rem 1rem 1.25rem;
    text-align: center;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brm-public-registry ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    margin: 0.75rem 0 0.35rem;
    line-height: 1.35;
}

.brm-public-registry ul.products li.product .price {
    display: block;
    margin-bottom: 0.5rem;
}

.brm-public-registry ul.products li.product img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.brm-public-registry ul.products li.product .button {
    margin-top: auto;
}

.brm-public-registry .brm-product-short-description {
    margin: 0.75rem 0;
    color: #4a4a4a;
    font-size: 0.9rem;
    line-height: 1.5;
    text-align: left;
    width: 100%;
}

@media (max-width: 1024px) {
    .brm-public-registry ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .brm-registry-hero {
        padding: 1.4rem 1rem 1.25rem;
        background-size: cover;
    }

    .brm-public-registry ul.products {
        display: block;
        gap: 1rem;
    }

    .brm-public-registry ul.products li.product {
        float: none !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 0 1rem !important;
        clear: both;
    }
}

.woocommerce-checkout .brm-checkout-registry-notice {
    margin-bottom: 1.25rem;
}

.brm-registry-checkout .brm-message-to-parents textarea {
    width: 100%;
    min-height: 6rem;
}

/* Ocultar elementos nativos de nota adicional en checkout de lista (bloques). */
.brm-registry-checkout [id*="order-notes"],
.brm-registry-checkout [name*="order_notes"],
.brm-registry-checkout [name*="order_comments"] {
    display: none !important;
}
