/* =========================================
   MOBILE RESPONSIVE STYLES - BabyLovee
   ========================================= */

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #7DCAD2;
    cursor: pointer;
    padding: 10px;
}

/* Mobile Menu Drawer */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 9999;
    transition: left 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu-drawer.open {
    left: 0;
}

.mobile-menu-overlay.open {
    display: block;
}

.mobile-menu-header {
    background: #7DCAD2;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

.mobile-menu-items {
    padding: 0;
    margin: 0;
    list-style: none;
}

.mobile-menu-items li {
    border-bottom: 1px solid #eee;
}

.mobile-menu-items a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
}

.mobile-menu-items a i {
    margin-right: 12px;
    color: #7DCAD2;
    width: 20px;
    text-align: center;
}

.mobile-menu-items a:hover {
    background: #f5f5f5;
}

/* ==========================================
   TABLET STYLES (768px - 992px)
   ========================================== */
@media (max-width: 992px) {

    /* Product Grid - 2 columns on tablet */
    .produtos .col-md-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }

    /* Product Page - 2 columns */
    .produto-grid {
        grid-template-columns: 80px 1fr !important;
    }

    .produto-info-box {
        grid-column: 1 / -1;
    }

    /* Banner smaller */
    .banner {
        height: 250px;
    }

    /* Mini banners smaller */
    .miniBanner {
        height: 200px;
    }

    /* Bottom banner grid */
    .bottomBanner .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 15px;
    }
}

/* ==========================================
   MOBILE STYLES (< 768px)
   ========================================== */
@media (max-width: 768px) {

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block !important;
    }

    /* Hide top bar marquee on mobile */
    .top-bar-promo {
        display: none !important;
    }

    /* Header Adjustments */
    .shopBar {
        padding: 10px 0 !important;
    }

    .shopBar .container .row {
        flex-direction: column;
        align-items: center !important;
    }

    .shopBar .col-md-3:first-child {
        order: 1;
        margin-bottom: 10px;
    }

    .shopBar .col-md-6 {
        order: 2;
        width: 100%;
        padding: 0 15px;
        margin-bottom: 10px;
    }

    .shopBar .col-md-3:last-child {
        order: 3;
        width: 100%;
        padding: 0 15px;
    }

    /* Search - full width */
    .search {
        width: 100%;
        height: 45px !important;
    }

    /* Logo smaller */
    .logo-text span:first-child {
        font-size: 24px !important;
    }

    .logo-text span:last-child {
        font-size: 8px !important;
    }

    /* User account compact */
    .user-account {
        margin-right: 15px !important;
    }

    .user-account>div {
        display: none !important;
    }

    .user-account i {
        font-size: 28px !important;
    }

    /* Category bar - horizontal scroll */
    .shopCategory {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .shopCategory .container-fluid {
        min-width: max-content;
    }

    .categorias-destaque {
        display: none !important;
    }

    .btn-categorias {
        font-size: 14px !important;
        padding-left: 15px !important;
    }

    /* Product Grid - 2 columns */
    .produtos .col-md-3 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        padding: 5px !important;
    }

    .produto {
        margin: 5px !important;
    }

    .image_product {
        height: 160px;
    }

    .title_product {
        font-size: 0.85rem;
        margin-top: 15px;
        line-height: 1.3;
        height: 50px;
        overflow: hidden;
    }

    .priece_product {
        font-size: 1.3rem;
    }

    .payOption_product {
        font-size: 0.65rem;
    }

    /* AddCart button visible */
    .addCart {
        top: -35px;
        padding: 10px;
        font-size: 11px;
    }

    /* Banner */
    .banner {
        height: 180px;
        margin-top: 20px;
        border-radius: 10px;
    }

    /* Category Header */
    h1.header_category {
        font-size: 1.3rem;
        margin-top: 30px;
    }

    hr {
        width: 15%;
        margin-bottom: 25px;
    }

    /* Mini banners - FULL WIDTH on mobile and STACKED */
    .miniBanner {
        height: 180px !important;
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* Force mini banner columns to stack */
    .col-md-6.col-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Force all col-md-6 to full width */
    [class*="col-md-6"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Banner content text fix */
    .banner-content {
        padding: 15px !important;
    }

    .banner-content h3 {
        font-size: 1.2rem !important;
        margin-bottom: 5px !important;
    }

    .banner-content p {
        font-size: 0.85rem !important;
        margin-bottom: 10px !important;
    }

    .btn-banner {
        font-size: 12px !important;
        padding: 8px 15px !important;
    }

    /* ========== PRODUCT PAGE MOBILE ========== */
    .produto-page {
        padding: 15px 0 40px;
    }

    .breadcrumb-nav {
        font-size: 11px;
        margin-bottom: 15px;
        white-space: nowrap;
        overflow-x: auto;
    }

    .produto-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

    .galeria-thumbs {
        flex-direction: row !important;
        overflow-x: auto;
        gap: 8px;
        padding-bottom: 10px;
        order: 2;
    }

    .thumb-item {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0;
    }

    .imagem-principal-container {
        order: 1;
        padding: 15px;
    }

    .imagem-principal {
        height: 280px !important;
    }

    .produto-info-box {
        order: 3;
        padding: 20px;
    }

    .produto-titulo {
        font-size: 1.2rem !important;
    }

    .produto-preco {
        font-size: 1.6rem !important;
    }

    .botoes-acao {
        flex-direction: column;
    }

    .btn-carrinho,
    .btn-comprar {
        width: 100%;
        padding: 12px 20px;
        font-size: 14px;
    }

    .descricao-section {
        margin-top: 20px;
        padding: 20px;
    }

    .descricao-section h3 {
        font-size: 1rem;
    }

    /* Ficha técnica responsiva */
    .ficha-tecnica {
        font-size: 13px;
    }

    .ficha-tecnica td {
        display: block;
        width: 100%;
        padding: 5px 0;
    }

    .ficha-tecnica tr {
        display: block;
        border-bottom: 1px solid #eee;
        padding: 8px 0;
    }

    /* ========== NEWSLETTER MOBILE ========== */
    .newslater {
        padding: 25px 15px;
        margin-top: 50px;
    }

    .newslater .row {
        flex-direction: column;
    }

    .newslater .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
    }

    .newslater h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .newslater p {
        font-size: 12px;
        margin-bottom: 15px;
    }

    .newslatter {
        display: flex;
    }

    .newslater input {
        width: 80% !important;
        padding: 12px !important;
        font-size: 14px !important;
        border-radius: 10px 0 0 10px !important;
    }

    .newslater button {
        width: 20% !important;
        border-radius: 0 10px 10px 0 !important;
    }

    /* ========== FOOTER MOBILE ========== */
    .baseboard {
        padding: 30px 15px;
    }

    .baseboard .row {
        flex-direction: column;
    }

    .baseboard .col-sm {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 25px;
        text-align: center;
    }

    .baseboard .titleBaseboard {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .baseboard .linkBaseboard {
        font-size: 13px;
    }

    .bandeiras-pagamento {
        justify-content: center;
    }

    .selos-seguranca {
        justify-content: center;
    }

    .socialIcons {
        display: flex;
        justify-content: center;
        gap: 10px;
    }

    .socialIcons i {
        margin: 0;
        padding: 12px;
        width: 45px;
    }

    .copy {
        padding: 10px;
        font-size: 11px;
    }

    /* ========== BOTTOM BANNERS MOBILE ========== */
    .bottomBanner {
        padding: 15px;
    }

    .bottomBanner .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 10px;
    }

    .titleBottomBanner {
        font-size: 12px;
    }

    .descriptionBottomBanner {
        font-size: 9px;
    }

    /* ========== BLOG MOBILE ========== */
    .postBlog .photo_postBlog {
        height: 180px;
    }

    .postBlog .title_postBlog {
        font-size: 16px;
    }

    .postBlog .description_postBlog {
        font-size: 12px;
    }

    /* ========== CART PAGE MOBILE ========== */
    .carrinho-container {
        padding: 15px 0;
    }

    .carrinho-item {
        flex-direction: column;
        text-align: center;
    }

    .carrinho-item img {
        margin-bottom: 10px;
    }
}

/* ==========================================
   SMALL PHONE STYLES (< 480px)
   ========================================== */
@media (max-width: 480px) {

    /* Single column products */
    .produtos .col-md-3 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .image_product {
        height: 200px;
    }

    .title_product {
        height: auto;
    }

    /* Smaller logo */
    .logo-text span:first-child {
        font-size: 20px !important;
    }

    .imagem-principal {
        height: 220px !important;
    }

    .produto-titulo {
        font-size: 1rem !important;
    }

    .bottomBanner .col-md-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ==========================================
   GENERAL MOBILE FIXES
   ========================================== */

/* Prevent horizontal scroll */
html,
body {
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Touch-friendly links */
a,
button {
    min-height: 44px;
    min-width: 44px;
}

/* Container padding on mobile */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}
/* Product Description Overflow Fix */
.descricao-content img {
    max-width: 100% !important;
    height: auto !important;
}
.descricao-content iframe {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}
.descricao-content table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
}
