/* ============================================
   Love Baby First - Custom CSS
   Bootstrap 5 Modern Redesign
   Cores originais mantidas
   ============================================ */

:root {
    --primary-blue: #098aff;
    --secondary-blue: #78b8f1;
    --dark-blue: #0C6BC5;
    --accent-red: #DD2109;
    --white: #ffffff;
    --light-bg: rgba(255, 255, 255, 0.92);
    --footer-bg: rgba(252, 252, 252, 0.94);
    --text-dark: #333333;
    --text-body: #444444;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* === RESET & BASE === */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 50%, #a8d4f7 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-body);
    line-height: 1.7;
    padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-body);
}

a {
    color: var(--dark-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-red);
}

/* === NAVBAR === */
.navbar {
    background: var(--footer-bg) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--dark-blue) !important;
    letter-spacing: 1px;
}

.navbar-nav .nav-link {
    color: var(--dark-blue) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1rem !important;
    border-radius: 6px;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-red) !important;
    background: rgba(9, 138, 255, 0.05);
}

.navbar-toggler {
    border: none;
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* === HEADER / LOGO AREA === */
.header-area {
    background: url("../img/bg.png") no-repeat center center;
    background-size: cover;
    padding: 2rem 0;
    margin-bottom: 1.5rem;
}

.header-logo img {
    max-width: 220px;
    height: auto;
}

.header-balao img {
    max-width: 300px;
    height: auto;
    animation: floatBalloon 4s ease-in-out infinite;
}

@keyframes floatBalloon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 767.98px) {
    .header-balao {
        display: none;
    }
    .header-logo img {
        max-width: 160px;
    }
}

/* === CONTENT BOX === */
.content-box {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(5px);
}

/* === CAROUSEL === */
.carousel {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.carousel-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--dark-blue);
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* === SECTION TITLES === */
.section-title {
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1.4rem;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 0.8rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-red), var(--primary-blue));
    border-radius: 2px;
}

.section-title .heart-icon {
    color: var(--accent-red);
    font-size: 0.9em;
}

/* === PRODUCT CARDS === */
.product-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    margin-bottom: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card .product-img-wrapper {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.product-card .product-img-wrapper img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-card .product-info {
    padding: 1rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-card .product-info h6 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    text-transform: uppercase;
}

.product-card .product-info small {
    color: #888;
    font-size: 0.75rem;
}

/* === PRODUCT FILTER TABS === */
.product-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: var(--radius);
}

.product-filters .filter-btn {
    padding: 0.5rem 1.2rem;
    border: 2px solid var(--dark-blue);
    background: transparent;
    color: var(--dark-blue);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
}

.product-filters .filter-btn:hover,
.product-filters .filter-btn.active {
    background: var(--dark-blue);
    color: var(--white);
    box-shadow: 0 3px 10px rgba(12, 107, 197, 0.3);
}

.product-filters .dropdown-menu {
    border-radius: var(--radius);
    box-shadow: var(--shadow-hover);
    border: none;
    padding: 0.5rem;
}

.product-filters .dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-filters .dropdown-item:hover {
    background: rgba(9, 138, 255, 0.1);
    color: var(--dark-blue);
}

/* === PARCEIROS CAROUSEL === */
.partners-section {
    background: var(--light-bg);
    border-radius: var(--radius);
    padding: 2rem 1rem;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.partners-section .section-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.partners-track-wrapper {
    position: relative;
    overflow: hidden;
    padding: 0 2.5rem;
}

.partners-track {
    display: flex;
    gap: 2rem;
    animation: scrollPartners 40s linear infinite;
    width: max-content;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partner-item {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 8px;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: var(--transition);
}

.partner-item:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-hover);
}

.partner-item img {
    max-width: 100%;
    max-height: 55px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: var(--transition);
}

.partner-item:hover img {
    filter: grayscale(0%);
}

@keyframes scrollPartners {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.partners-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dark-blue);
    color: var(--white);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    opacity: 0.7;
    transition: var(--transition);
}

.partners-nav-btn:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.partners-nav-btn.prev { left: 0; }
.partners-nav-btn.next { right: 0; }

.partners-expand-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1.2rem;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 2px solid var(--dark-blue);
    color: var(--dark-blue);
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.partners-expand-btn:hover {
    background: var(--dark-blue);
    color: var(--white);
}

.partners-grid {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.partners-grid.show {
    display: grid;
}

.partners-grid .partner-item {
    width: 100%;
    height: 90px;
}

/* === CONTACT === */
.contact-form .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--dark-blue);
    box-shadow: 0 0 0 0.2rem rgba(12, 107, 197, 0.15);
}

.contact-form .btn-primary {
    background: var(--dark-blue);
    border: none;
    padding: 0.75rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 25px;
    transition: var(--transition);
}

.contact-form .btn-primary:hover {
    background: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(9, 138, 255, 0.3);
    transform: translateY(-2px);
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-bottom: 2rem;
}

.map-container iframe {
    width: 100%;
    height: 350px;
    border: none;
}

/* === CATALOGO PDF === */
.pdf-viewer-container {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #f8f9fa;
    padding: 1rem;
}

.pdf-viewer-container iframe {
    width: 100%;
    height: 80vh;
    border: none;
    border-radius: 8px;
}

.pdf-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: var(--dark-blue);
    color: var(--white);
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-decoration: none;
}

.pdf-download-btn:hover {
    background: var(--primary-blue);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(9, 138, 255, 0.3);
    transform: translateY(-2px);
}

/* === MANUAIS === */
.manual-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
    height: 100%;
}

.manual-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.manual-card i {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 0.75rem;
}

.manual-card span {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-dark);
    margin-top: 0.5rem;
}

/* === FOOTER === */
footer {
    background: linear-gradient(135deg, #1a2a3a 0%, #0C6BC5 100%);
    margin-top: 0;
    padding: 3rem 0 1.5rem;
    color: rgba(255,255,255,0.85);
}

footer h5 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-red);
    border-radius: 2px;
}

footer p, footer li, footer a {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.8;
}

footer a {
    color: rgba(255,255,255,0.85);
    transition: var(--transition);
}

footer a:hover {
    color: var(--white);
    text-decoration: none;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer ul li {
    margin-bottom: 0.4rem;
}

footer ul li i {
    color: var(--accent-red);
    margin-right: 0.5rem;
    font-size: 0.8rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    max-width: 50px;
    border-radius: 8px;
}

.footer-brand span {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 2rem;
    padding-top: 1.2rem;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}

/* === LIGHTBOX / MODAL === */
.product-modal .modal-content {
    border-radius: var(--radius);
    border: none;
    overflow: hidden;
}

.product-modal .modal-header {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: var(--white);
    border: none;
}

.product-modal .modal-header .btn-close {
    filter: invert(1);
}

.product-modal .modal-body {
    padding: 2rem;
    text-align: center;
}

.product-modal .modal-body img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
}

/* === INMETRO BADGE === */
.inmetro-section img {
    max-width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

/* === ANIMATIONS === */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 991.98px) {
    .section-title {
        font-size: 1.2rem;
    }
    .content-box {
        padding: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    body {
        padding-top: 60px;
    }
    .content-box {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    .section-title {
        font-size: 1rem;
    }
    .product-card .product-img-wrapper {
        min-height: 150px;
    }
    .carousel {
        margin-bottom: 1rem;
    }
}

/* === SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-blue);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-blue);
}

/* === LOADING SKELETON === */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
