/* Flores de Mayo — Jardín alegre */

.quiz-card {
    transition: all 0.25s ease;
    border: 2px solid transparent;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(61, 31, 38, 0.06);
}
.quiz-card:hover { border-color: #f0c4cf; }
.quiz-card.selected {
    border-color: #e85d75;
    background-color: #fff8fa;
    box-shadow: 0 4px 20px rgba(232, 93, 117, 0.15);
}

.paper-texture {
    background-color: #ffffff;
    background-image: radial-gradient(#fff0e8 1px, transparent 1px);
    background-size: 20px 20px;
}

.timeline-line {
    width: 2px;
    background-color: #f0ddd4;
    position: absolute;
    top: 24px;
    bottom: -24px;
    left: 23px;
    z-index: 0;
}
.timeline-item:last-child .timeline-line { display: none; }

.product-card,
.card-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover,
.card-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(232, 93, 117, 0.12);
}

.body-shell { max-width: 32rem; margin-left: auto; margin-right: auto; }

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}
@keyframes fadeInUp {
    to { opacity: 1; transform: translateY(0); }
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: 700;
    background: #e85d75;
    color: #fff;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.chip-link {
    transition: transform 0.15s ease;
}
.chip-link:active { transform: scale(0.96); }
.drawer-nav-tile { -webkit-tap-highlight-color: transparent; }

/* ─── Carrito: stepper + toast (estilo IMPROGYP) ─── */
.flor-qty-stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem;
    background: #fff6f0;
    border: 1px solid #f0ddd4;
    border-radius: 9999px;
    padding: 0.25rem;
    min-width: 7rem;
    box-shadow: inset 0 1px 2px rgba(61, 31, 38, 0.04);
}
.flor-qty-stepper--sm { min-width: 6.5rem; }
.flor-qty-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #fff;
    border: none;
    color: #6b5344;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(61, 31, 38, 0.08);
    transition: transform 0.1s, color 0.15s;
}
.flor-qty-btn:active { transform: scale(0.92); }
.flor-qty-btn:hover { color: #e85d75; }
.flor-qty-num {
    min-width: 1.25rem;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: #3d1f26;
}
.flor-cart-pulse {
    animation: florCartPulse 0.35s ease;
}
@keyframes florCartPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

#flor-toast-container {
    position: fixed;
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: min(22rem, calc(100vw - 2rem));
    pointer-events: none;
}
@media (min-width: 768px) {
    #flor-toast-container {
        bottom: 1.5rem;
        left: auto;
        right: 1.5rem;
        transform: none;
    }
}
.flor-toast-cart {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: #fff;
    border: 1px solid #f0ddd4;
    border-radius: 1rem;
    padding: 0.75rem 0.875rem;
    box-shadow: 0 12px 40px rgba(61, 31, 38, 0.15);
    animation: florToastIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.flor-toast-cart--out {
    animation: florToastOut 0.3s ease forwards;
}
@keyframes florToastIn {
    from { opacity: 0; transform: translateY(12px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes florToastOut {
    to { opacity: 0; transform: translateY(8px) scale(0.96); }
}
.flor-toast-cart__icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: #e8f0e9;
    color: #6b8f71;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.flor-toast-cart__body { flex: 1; min-width: 0; }
.flor-toast-cart__title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #9a7a6a;
    margin: 0;
}
.flor-toast-cart__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #3d1f26;
    margin: 0.125rem 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.flor-toast-cart__btn {
    flex-shrink: 0;
    background: linear-gradient(135deg, #e85d75, #d94a65);
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    text-decoration: none;
    white-space: nowrap;
}
.flor-toast-cart__close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: #9a7a6a;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
}

/* Mi regalo — GPS y modales */
.regalo-gps-btn {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 9999px;
    border: 1px solid #f0ddd4;
    background: #fff;
    color: #e85d75;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(61, 31, 38, 0.08);
    transition: transform 0.15s, background 0.15s;
}
.regalo-gps-btn:active { transform: scale(0.94); }
.regalo-gps-btn:hover { background: #fff5f7; }

body.flor-modal-open { overflow: hidden; }

.flor-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(61, 31, 38, 0.45);
    z-index: 10000;
    backdrop-filter: blur(2px);
}
.flor-modal-overlay.hidden { display: none; }

.flor-sheet {
    position: fixed;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 10001;
    width: min(24rem, calc(100vw - 1rem));
    background: #fff;
    border-radius: 1.25rem 1.25rem 0 0;
    padding: 1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -8px 40px rgba(61, 31, 38, 0.18);
    animation: florSheetIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.flor-sheet.hidden { display: none; }
.flor-sheet__handle {
    width: 2.5rem;
    height: 0.25rem;
    border-radius: 9999px;
    background: #e8d5cc;
    margin: 0 auto 1rem;
}
.flor-sheet__option {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    text-align: left;
    padding: 0.875rem 1rem;
    border-radius: 1rem;
    border: 1px solid #f0ddd4;
    background: #fffcfa;
    margin-bottom: 0.625rem;
    transition: border-color 0.15s, background 0.15s;
}
.flor-sheet__option:hover { border-color: #e85d75; background: #fff; }
.flor-sheet__option strong {
    display: block;
    font-size: 0.9375rem;
    color: #3d1f26;
    font-weight: 600;
}
.flor-sheet__option small {
    display: block;
    margin-top: 0.125rem;
    font-size: 0.75rem;
    color: #9a7a6a;
    line-height: 1.35;
}
@keyframes florSheetIn {
    from { transform: translateX(-50%) translateY(100%); }
    to { transform: translateX(-50%) translateY(0); }
}

.flor-map-modal {
    position: fixed;
    inset: 1rem;
    z-index: 10002;
    background: #fff;
    border-radius: 1.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(61, 31, 38, 0.25);
}
.flor-map-modal.hidden { display: none; }
.flor-map-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 0.5rem;
}
.flor-map-modal__close {
    background: none;
    border: none;
    color: #9a7a6a;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
}
.flor-map-modal__canvas {
    flex: 1;
    min-height: 220px;
    margin: 0 1rem;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #f0ddd4;
}
.flor-map-modal__foot {
    padding: 1rem;
}

.flor-toast-msg {
    pointer-events: auto;
    background: #3d1f26;
    color: #fff;
    font-size: 0.8125rem;
    line-height: 1.4;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    margin-top: 0.5rem;
    box-shadow: 0 8px 24px rgba(61, 31, 38, 0.2);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s, transform 0.3s;
}
.flor-toast-msg--in { opacity: 1; transform: translateY(0); }
.flor-toast-msg--out { opacity: 0; transform: translateY(4px); }

/* Mi regalo — bloque total al final del scroll */
.regalo-checkout-footer {
    margin-top: 0.25rem;
}

.regalo-map-search__input {
    border: 1px solid #f0ddd4;
    border-radius: 0.75rem;
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    background: #fffcfa;
    outline: none;
}
.regalo-map-search__input:focus {
    border-color: #e85d75;
}
.regalo-map-search__btn {
    width: 2.75rem;
    height: 2.75rem;
    flex-shrink: 0;
    border-radius: 0.75rem;
    border: 1px solid #f0ddd4;
    background: #fff5f7;
    color: #e85d75;
    display: flex;
    align-items: center;
    justify-content: center;
}
.regalo-map-search__btn:disabled {
    opacity: 0.5;
}
