/* Shared site layout and brand styles. */
header.box-shadow-sm {
    position: sticky;
    top: -2.75rem;
    z-index: 1030;
}

@media (min-width: 992px) {
    .navbar .mega-dropdown.position-static .dropdown-menu {
        top: 100%;
        border-top: 1px solid #e3e6ea !important;
        border-radius: 0 0 0.5rem 0.5rem;
    }

    .navbar-nav .mega-dropdown:hover .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
        transition: all 0.2s ease-in-out;
    }
}

.widget-list-link:hover {
    color: #fe696a !important;
    transform: translateX(4px);
    transition: all 0.2s ease;
}

.hover-zoom {
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.hover-zoom:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1050;
    width: 100%;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ddd;
    border-top: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.search-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f1f1f1;
    cursor: pointer;
}

.search-item:hover {
    color: #fe696a;
    background: #f8f9fa;
}

.search-item-image {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
}

.sticky-top-custom {
    position: sticky;
    top: 200px;
    z-index: 10;
}

.sticky-summary-aside {
    align-self: flex-start;
}

@media (min-width: 992px) {
    .sticky-summary-aside {
        position: sticky;
        top: 200px;
        z-index: 20;
    }
}

.text-accent {
    color: #fe696a !important;
}

.btn-primary,
.bg-primary {
    background-color: #fe696a !important;
    border-color: #fe696a !important;
}

.btn-primary:hover {
    background-color: #e55556 !important;
    border-color: #e55556 !important;
}

.btn-outline-primary {
    color: #fe696a !important;
    border-color: #fe696a !important;
}

.btn-outline-primary:hover {
    color: #fff !important;
    background-color: #fe696a !important;
}

.badge-primary,
.badge-danger {
    background-color: #fe696a !important;
}

.nav-item.active .nav-link,
.nav-link.active {
    color: #fe696a !important;
    font-weight: 600;
}

.navbar-stuck {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1030;
    width: 100%;
    background: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.cz-image-zoom-pane {
    position: absolute;
    top: 0;
    left: 100%;
    z-index: 1000;
    display: none;
    width: 400px;
    height: 400px;
    background-repeat: no-repeat;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.site-accent-icon {
    color: #fe696a;
    font-size: 15px;
}

.customer-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    color: #fff;
    font-size: 2rem;
    background: #fe696a;
}

.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    background: linear-gradient(135deg, #187c5d, #20966f);
    border-color: #187c5d;
    box-shadow: 0 8px 20px rgba(24, 124, 93, 0.16);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    color: #fff;
    background: linear-gradient(135deg, #126c50, #187c5d);
    border-color: #126c50;
    box-shadow: 0 12px 28px rgba(24, 124, 93, 0.25);
    transform: translateY(-1px);
}

.btn-whatsapp svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
}

.footer-whatsapp-icon {
    width: 1.15rem;
    height: 1.15rem;
    vertical-align: -0.15rem;
    fill: #25d366;
}

.whatsapp-float {
    position: fixed;
    right: clamp(16px, 3vw, 28px);
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    color: #fff;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    isolation: isolate;
    animation:
        whatsapp-breathe 3.8s ease-out infinite,
        whatsapp-attention 5s ease-in-out infinite,
        whatsapp-color 6s ease-in-out infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.whatsapp-float::before {
    position: absolute;
    z-index: -1;
    inset: -5px;
    border: 1px solid rgba(37, 211, 102, 0.6);
    border-radius: 50%;
    content: "";
    animation: whatsapp-ring 2.8s ease-out infinite;
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.whatsapp-float__hint {
    position: absolute;
    right: calc(100% + 12px);
    padding: 0.55rem 0.8rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    background: #263238;
    border-radius: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
    color: #fff;
    text-decoration: none;
    transform: translateY(-3px) scale(1.08);
    animation-play-state: paused;
}

.whatsapp-float:hover::before,
.whatsapp-float:focus-visible::before {
    animation-play-state: paused;
}

.whatsapp-float:hover svg,
.whatsapp-float:focus-visible svg {
    transform: scale(1.08);
}

.whatsapp-float:hover .whatsapp-float__hint,
.whatsapp-float:focus-visible .whatsapp-float__hint {
    opacity: 1;
    transform: translateX(0);
}

@keyframes whatsapp-breathe {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45), 0 8px 24px rgba(0, 0, 0, 0.3);
    }
    70%,
    100% {
        box-shadow: 0 0 0 18px rgba(37, 211, 102, 0), 0 8px 24px rgba(0, 0, 0, 0.3);
    }
}

@keyframes whatsapp-color {
    0%,
    100% {
        background-color: #25d366;
    }
    50% {
        background-color: #20bd5a;
    }
}

@keyframes whatsapp-attention {
    0%,
    84%,
    100% {
        transform: translateY(0) scale(1);
    }
    88% {
        transform: translateY(-3px) scale(1.08);
    }
    92% {
        transform: translateY(0) scale(1);
    }
    96% {
        transform: translateY(-2px) scale(1.04);
    }
}

@keyframes whatsapp-ring {
    0% {
        opacity: 0.65;
        transform: scale(0.92);
    }
    75%,
    100% {
        opacity: 0;
        transform: scale(1.45);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-whatsapp,
    .whatsapp-float,
    .whatsapp-float::before {
        animation: none;
    }

    .btn-whatsapp,
    .whatsapp-float,
    .whatsapp-float svg,
    .whatsapp-float__hint {
        transition: none;
    }
}
