/* ==========================================
   AHG CELL - CSS MOBILE PWA
   Estilos otimizados para dispositivos móveis
   ========================================== */

/* === RESET E BASE MOBILE === */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    overscroll-behavior-y: contain;
}

/* === HEADER MOBILE - ESTILOS CUSTOMIZADOS === */
@media (max-width: 768px) {
    /* Menu hambúrguer agora é visível e controlado pelo style-modern.css */
    
    /* === AJUSTAR ESPAÇAMENTO DO CONTEÚDO === */
    .main-content {
        padding-top: 80px !important;
    }
    
    /* Páginas específicas */
    .page-content,
    .checkout-page,
    .cart-page,
    .profile-page,
    .orders-page,
    .auth-page,
    .help-page {
        padding-top: 80px !important;
    }
    
    /* Seções que são primeiro filho após o header */
    .hero-banner-section:first-of-type,
    .horizontal-banner-section:first-of-type {
        margin-top: 0 !important;
    }
}

/* === HERO/BANNER MOBILE === */
@media (max-width: 768px) {
    .hero-section,
    .banner-section {
        margin-top: 0 !important;
        padding: 0.5rem;
    }
    
    .hero-slider,
    .banner-slider {
        border-radius: 12px;
    }
    
    .hero-slide img,
    .banner-slide img {
        border-radius: 12px;
    }
    
    /* Banner Horizontal Mobile */
    .horizontal-banner-section {
        padding: 0.5rem !important;
        margin: 0.5rem auto !important;
    }
    
    .horizontal-banner-container {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .horizontal-banner-img {
        width: 100% !important;
        height: auto !important;
        border-radius: 12px !important;
        display: block !important;
        object-fit: cover !important;
        max-height: 200px !important;
    }
    
    /* Hero Banner Section Mobile */
    .hero-banner-section {
        padding: 0.5rem !important;
        margin: 0.5rem auto !important;
    }
    
    .hero-banner-container {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .hero-banner-img,
    #heroBannerImg {
        width: 100% !important;
        height: auto !important;
        border-radius: 12px !important;
        display: block !important;
        object-fit: cover !important;
        max-height: 200px !important;
    }
    
    .hero-banner-link {
        display: block !important;
        width: 100% !important;
    }
}

/* === CATEGORIAS MOBILE === */
@media (max-width: 768px) {
    .categories-section {
        background: #ffffff !important;
        padding: 0.75rem 0.5rem !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0.5rem !important;
    }
    
    .categories-header {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0 0.5rem 0.75rem;
        text-align: center;
    }
    
    .categories-header-left {
        width: 100%;
        justify-content: center;
    }
    
    /* Título das Categorias - Estilo igual Selecionados para você */
    .categories-title-text {
        font-size: 1rem !important;
        flex-direction: column !important;
        gap: 0.15rem !important;
        text-align: center !important;
        line-height: 1.3 !important;
        color: #1a1a1a !important;
    }
    
    .categories-title-icon {
        font-size: 1rem !important;
        color: #f5a5c0 !important;
        display: block !important;
        margin-bottom: 0.1rem !important;
    }
    
    .category-item {
        min-width: 70px;
        padding: 0.5rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .category-name {
        font-size: 0.7rem;
    }
}

/* === CARDS DE PRODUTO MOBILE === */
@media (max-width: 768px) {
    .products-carousel .product-card {
        min-width: calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-name {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .price-main-value {
        font-size: 1rem;
    }
    
    .price-pix-label {
        font-size: 0.65rem;
    }
    
    .price-installment-text {
        font-size: 0.65rem;
    }
    
    .btn-buy-now,
    .btn-add-cart {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
}

/* === HERO/BANNER MOBILE === */
@media (max-width: 768px) {
    .hero-section,
    .banner-section {
        margin-top: 60px;
        padding: 0.5rem;
    }
    
    .hero-slider,
    .banner-slider {
        border-radius: 12px;
    }
    
    .hero-slide img,
    .banner-slide img {
        border-radius: 12px;
    }
    
    /* Banner Horizontal Mobile */
    .horizontal-banner-section {
        padding: 0.5rem !important;
        margin: 0.5rem auto !important;
    }
    
    .horizontal-banner-container {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .horizontal-banner-img {
        width: 100% !important;
        height: auto !important;
        border-radius: 12px !important;
        display: block !important;
        object-fit: cover !important;
        max-height: 200px !important;
    }
    
    /* Hero Banner Section Mobile */
    .hero-banner-section {
        padding: 0.5rem !important;
        margin: 0.5rem auto !important;
    }
    
    .hero-banner-container {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .hero-banner-img,
    #heroBannerImg {
        width: 100% !important;
        height: auto !important;
        border-radius: 12px !important;
        display: block !important;
        object-fit: cover !important;
        max-height: 200px !important;
    }
    
    .hero-banner-link {
        display: block !important;
        width: 100% !important;
    }
}

/* === CATEGORIAS MOBILE === */
@media (max-width: 768px) {
    .categories-section {
        background: #ffffff !important;
        padding: 0.75rem 0.5rem !important;
        border-radius: 0 !important;
        border: none !important;
        margin: 0.5rem !important;
    }
    
    .categories-header {
        flex-direction: column;
        gap: 0.25rem;
        padding: 0 0.5rem 0.75rem;
        text-align: center;
    }
    
    .categories-header-left {
        width: 100%;
        justify-content: center;
    }
    
    /* Título das Categorias - Estilo igual Selecionados para você */
    .categories-title-text {
        font-size: 1rem !important;
        flex-direction: column !important;
        gap: 0.15rem !important;
        text-align: center !important;
        line-height: 1.3 !important;
        color: #1a1a1a !important;
    }
    
    .categories-title-icon {
        font-size: 1rem !important;
        color: #f5a5c0 !important;
        display: block !important;
        margin-bottom: 0.1rem !important;
    }
    
    .category-item {
        min-width: 70px;
        padding: 0.5rem;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .category-name {
        font-size: 0.7rem;
    }
}

/* === CARDS DE PRODUTO MOBILE === */
@media (max-width: 768px) {
    .products-carousel .product-card {
        min-width: calc(50% - 8px) !important;
        max-width: calc(50% - 8px) !important;
    }
    
    .product-card {
        border-radius: 12px;
    }
    
    .product-image {
        height: 150px;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-name {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .price-main-value {
        font-size: 1rem;
    }
    
    .price-pix-label {
        font-size: 0.65rem;
    }
    
    .price-installment-text {
        font-size: 0.65rem;
    }
    
    .btn-buy-now,
    .btn-add-cart {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .quantity-selector.image-qty-selector {
        transform: scale(0.85);
        bottom: 0.5rem;
        right: 0.5rem;
    }
    
    .btn-favorite {
        width: 32px;
        height: 32px;
        top: 0.5rem;
        left: 0.5rem;
    }
}

@media (max-width: 480px) {
    .products-carousel .product-card {
        min-width: calc(50% - 6px) !important;
        max-width: calc(50% - 6px) !important;
    }
    
    .products-carousel {
        gap: 12px;
        padding: 0.5rem;
    }
    
    .product-image {
        height: 130px;
    }
    
    .product-info {
        padding: 0.6rem;
    }
    
    .product-name {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .price-main-value {
        font-size: 0.95rem;
    }
    
    .btn-buy-now {
        padding: 0.45rem;
        font-size: 0.7rem;
    }
    
    .btn-add-cart {
        padding: 0.4rem;
        font-size: 0.65rem;
    }
}

/* === SEÇÕES MOBILE === */
@media (max-width: 768px) {
    .section-container {
        padding: 0 0.75rem;
    }
    
    .products-section {
        padding: 1rem 0;
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .products-header-ml {
        padding: 0.75rem 1rem;
    }
    
    .products-title-ml {
        font-size: 0.95rem;
    }
    
    .carousel-nav-btn {
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
    }
    
    .carousel-nav-btn.prev {
        left: 4px;
    }
    
    .carousel-nav-btn.next {
        right: 4px;
    }
}

/* === FOOTER MOBILE === */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section {
        width: 100%;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* === MODAL CARRINHO MOBILE === */
@media (max-width: 768px) {
    .cart-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
        right: 0;
    }
    
    .cart-modal {
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch;
    }
    
    .cart-modal .modal-header {
        position: sticky;
        top: 0;
        z-index: 10;
        background: #ffffff;
    }
    
    .cart-items {
        max-height: none !important;
        flex: 0 0 auto !important;
        overflow: visible !important;
    }
    
    .cart-footer {
        position: static !important;
        flex-shrink: 0 !important;
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }
    
    .cart-item {
        padding: 0.75rem;
    }
    
    .cart-item-image {
        width: 60px;
        height: 60px;
    }
    
    .cart-item-name {
        font-size: 0.85rem;
    }
    
    .cart-item-price {
        font-size: 0.9rem;
    }
}

/* === BUSCA MOBILE (FULL SCREEN) === */
@media (max-width: 768px) {
    .mobile-search-active .search-bar {
        display: flex;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        z-index: 9999;
        padding: 1rem;
        flex-direction: column;
    }
    
    .search-autocomplete {
        position: relative;
        top: 0;
        margin-top: 1rem;
        max-height: calc(100vh - 120px);
        overflow-y: auto;
    }
}

/* === TOUCH IMPROVEMENTS === */
@media (max-width: 768px) {
    button, 
    a, 
    .product-card,
    .category-item {
        touch-action: manipulation;
    }
    
    .btn-buy-now:active,
    .btn-add-cart:active {
        transform: scale(0.98);
    }
    
    .product-card:active {
        transform: scale(0.99);
    }
}

/* === SAFE AREA (NOTCH) === */
@supports (padding: max(0px)) {
    .header {
        padding-top: max(0.5rem, env(safe-area-inset-top));
    }
    
    .footer {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
    
    .cart-modal-content {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* === SCROLL HORIZONTAL SUAVE === */
.products-carousel,
.categories-carousel {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.product-card,
.category-item {
    scroll-snap-align: start;
}

/* === ANIMAÇÕES OTIMIZADAS MOBILE === */
@media (max-width: 768px) {
    .product-card:hover {
        transform: none;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    
    .product-card:hover .product-image img {
        transform: none;
    }
}

/* === LOADING STATES === */
.skeleton-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* === PWA INSTALL PROMPT === */
.pwa-install-prompt {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: #1a1a1a;
    color: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 10000;
    animation: slideUp 0.3s ease;
}

.pwa-install-prompt.show {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.pwa-install-prompt .pwa-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.pwa-install-prompt .pwa-text {
    flex: 1;
}

.pwa-install-prompt .pwa-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.pwa-install-prompt .pwa-desc {
    font-size: 0.85rem;
    opacity: 0.8;
}

.pwa-install-prompt .pwa-btn {
    padding: 0.5rem 1rem;
    background: #f5a5c0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.pwa-install-prompt .pwa-close {
    background: transparent;
    border: none;
    color: #fff;
    opacity: 0.6;
    cursor: pointer;
    padding: 0.5rem;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* === ORIENTAÇÃO LANDSCAPE === */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 0.25rem 0;
    }
    
    .logo img {
        height: 35px !important;
    }
    
    .products-carousel .product-card {
        min-width: calc(33.333% - 12px) !important;
        max-width: calc(33.333% - 12px) !important;
    }
}

/* ==========================================
   CORREÇÕES MOBILE - VERSÃO OTIMIZADA
   ========================================== */

/* === TÍTULOS DAS SEÇÕES "SELECIONADOS PARA VOCÊ" === */
@media (max-width: 768px) {
    .products-header-ml {
        padding: 0 0 1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .products-title-ml {
        font-size: 1rem !important;
        flex-direction: column !important;
        gap: 0.15rem !important;
        text-align: center !important;
        line-height: 1.3 !important;
    }
    
    .products-title-ml span:first-child {
        font-size: 0.85rem !important;
        font-weight: 500 !important;
        color: #666666 !important;
    }
    
    .products-title-ml .highlight {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        display: block !important;
    }
    
    .products-title-ml .category-link {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.3rem !important;
        color: #f5a5c0 !important;
        font-weight: 700 !important;
        font-size: 0.9rem !important;
        text-decoration: none !important;
        padding: 0.35rem 0.8rem !important;
        border: 2px solid #f5a5c0 !important;
        border-radius: 25px !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        background: transparent !important;
        margin-top: 0.3rem !important;
    }
    
    .products-title-ml .category-link:hover,
    .products-title-ml .category-link:active {
        background: #f5a5c0 !important;
        color: #fff !important;
    }
    
    /* Seção de produtos mobile */
    .products-section {
        padding: 0.75rem 0 !important;
        margin: 0.5rem auto !important;
        border-radius: 10px !important;
        width: calc(100% - 1rem) !important;
        max-width: calc(100% - 1rem) !important;
        box-sizing: border-box !important;
    }
    
    .products-container {
        padding: 0 0.5rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Carrossel centralizado */
    .products-carousel-wrapper {
        width: 100% !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    
    .products-carousel {
        padding: 0.5rem !important;
        gap: 8px !important;
        justify-content: flex-start !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* === CARDS DE PRODUTO - PREÇO PIX CORRIGIDO === */
@media (max-width: 768px) {
    .products-carousel .product-card,
    .product-card {
        min-width: calc(50% - 4px) !important;
        max-width: calc(50% - 4px) !important;
        flex-shrink: 0 !important;
    }
    
    /* Garantir que o carrossel mostre 2 cards por vez */
    .products-carousel {
        display: flex !important;
        gap: 8px !important;
    }
    
    .product-info {
        padding: 0.6rem !important;
    }
    
    .product-name {
        font-size: 0.8rem !important;
        margin-bottom: 0.4rem !important;
        line-height: 1.3 !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
    }
    
    /* PREÇO E PIX - LAYOUT CORRIGIDO */
    .product-prices {
        margin-bottom: 0.5rem !important;
        gap: 0.2rem !important;
    }
    
    .price-main-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0 !important;
        flex-wrap: nowrap !important;
    }
    
    .price-main-value {
        font-size: 1.05rem !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
    
    .price-pix-label {
        font-size: 0.65rem !important;
        color: #6b7280 !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        margin-top: -2px !important;
    }
    
    .price-installment-info {
        margin-top: 0.15rem !important;
        margin-bottom: 0.4rem !important;
    }
    
    .price-installment-text {
        font-size: 0.6rem !important;
        line-height: 1.2 !important;
    }
    
    /* BOTÕES DOS CARDS - COMPACTOS */
    .product-actions {
        gap: 0.35rem !important;
    }
    
    .btn-buy-now {
        padding: 0.45rem 0.3rem !important;
        font-size: 0.65rem !important;
        border-radius: 6px !important;
        gap: 0.2rem !important;
        white-space: nowrap !important;
    }
    
    .btn-buy-now span {
        font-size: 0.6rem !important;
    }
    
    .btn-buy-now i {
        font-size: 0.6rem !important;
    }
    
    .buttons-row {
        gap: 0.25rem !important;
    }
    
    .btn-add-cart {
        padding: 0.35rem 0.25rem !important;
        font-size: 0.55rem !important;
        border-radius: 5px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .btn-add-cart i {
        font-size: 0.6rem !important;
    }
    
    /* Botão avise-me compacto */
    .btn-notify-stock {
        padding: 0.45rem 0.3rem !important;
        font-size: 0.6rem !important;
        gap: 0.25rem !important;
    }
    
    .btn-notify-stock span {
        font-size: 0.55rem !important;
    }
    
    /* Seletor de quantidade compacto */
    .quantity-selector.image-qty-selector {
        transform: scale(0.8) !important;
        bottom: 0.35rem !important;
        right: 0.35rem !important;
    }
    
    /* Badge de estoque compacto */
    .product-stock-badge.image-badge-left {
        font-size: 0.6rem !important;
        padding: 0.25rem 0.4rem !important;
        bottom: 0.35rem !important;
        left: 0.35rem !important;
    }
    
    /* Favorito compacto */
    .btn-favorite {
        width: 28px !important;
        height: 28px !important;
        top: 0.35rem !important;
        left: 0.35rem !important;
        font-size: 0.85rem !important;
    }
    
    /* Badge carrinho compacto */
    .product-cart-badge {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.4rem !important;
        top: 0.35rem !important;
        right: 0.35rem !important;
    }
    
    /* Imagem do produto */
    .product-image {
        height: 140px !important;
    }
}

/* === FOOTER MOBILE - CENTRALIZADO === */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0.75rem !important;
        margin-top: 2rem !important;
    }
    
    .footer .container {
        padding: 0 !important;
    }
    
    .footer-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 1.5rem !important;
    }
    
    .footer-column {
        width: 100% !important;
        max-width: 300px !important;
        text-align: center !important;
    }
    
    .footer-column h4 {
        font-size: 1rem !important;
        margin-bottom: 0.75rem !important;
        text-align: center !important;
    }
    
    .footer-column ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .footer-column ul li {
        margin-bottom: 0.5rem !important;
    }
    
    .footer-column ul li a {
        font-size: 0.85rem !important;
    }
    
    /* Footer brand centralizado */
    .footer-brand {
        justify-content: center !important;
        text-align: center !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .footer-brand > div {
        text-align: center !important;
    }
    
    #footerLogoImg {
        height: 45px !important;
        margin: 0 auto !important;
    }
    
    #footerSiteName {
        font-size: 1.2rem !important;
        text-align: center !important;
    }
    
    #footerTagline {
        font-size: 0.65rem !important;
        text-align: center !important;
    }
    
    /* Social links centralizadas */
    .social-links {
        justify-content: center !important;
        margin-top: 0.75rem !important;
    }
    
    .social-links a {
        width: 40px !important;
        height: 40px !important;
    }
    
    /* Contato centralizado */
    .contact-info {
        text-align: center !important;
    }
    
    .contact-info li {
        justify-content: center !important;
        font-size: 0.8rem !important;
    }
    
    /* Footer bottom */
    .footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
        padding-top: 1rem !important;
        text-align: center !important;
    }
    
    .footer-bottom p,
    #footerCopyrightText {
        font-size: 0.75rem !important;
        text-align: center !important;
        order: 2;
    }
    
    .payment-methods {
        justify-content: center !important;
        gap: 0.75rem !important;
        order: 1;
    }
    
    .payment-methods i {
        font-size: 1.5rem !important;
    }
}

/* === TELAS MUITO PEQUENAS (< 400px) === */
@media (max-width: 400px) {
    .header-content {
        padding: 0 0.35rem !important;
    }
    
    .logo img,
    #headerLogoImg {
        height: 30px !important;
        max-width: 30px !important;
    }
    
    .logo h1,
    #siteName {
        font-size: 14px !important;
    }
    
    .products-title-ml span:first-child {
        font-size: 0.75rem !important;
    }
    
    .products-title-ml .highlight {
        font-size: 1rem !important;
    }
    
    .price-main-value {
        font-size: 0.95rem !important;
    }
    
    .btn-buy-now {
        padding: 0.4rem 0.25rem !important;
        font-size: 0.6rem !important;
    }
    
    .btn-add-cart {
        font-size: 0.5rem !important;
    }
}

/* ==========================================
   RESPONSIVIDADE GLOBAL - TODAS AS PÁGINAS
   ========================================== */

/* === CONTAINERS RESPONSIVOS === */
@media (max-width: 768px) {
    /* Containers de páginas - centralização */
    .checkout-container,
    .orders-container,
    .profile-container,
    .favoritos-container,
    .products-container,
    .help-container,
    .about-container,
    .privacy-container,
    .terms-container,
    .policy-container {
        width: calc(100% - 1rem) !important;
        max-width: calc(100% - 1rem) !important;
        margin: 0 auto !important;
        padding: 0 0.5rem !important;
        box-sizing: border-box !important;
    }
    
    /* Páginas - padding superior ajustado */
    .checkout-page,
    .orders-page,
    .profile-page,
    .favoritos-page,
    .products-page,
    .help-page,
    .about-page,
    .privacy-page,
    .terms-page,
    .policy-page,
    .cadastro-page,
    .login-page,
    .reset-page,
    .product-page {
        padding-top: 100px !important;
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    /* Cards/Boxes brancos - centralização uniforme */
    .page-header,
    .checkout-card,
    .order-card,
    .profile-card,
    .help-card,
    .about-card,
    .content-card,
    .info-card,
    .section-card,
    .cadastro-container,
    .login-container,
    .reset-container {
        width: calc(100% - 1rem) !important;
        max-width: calc(100% - 1rem) !important;
        margin: 0.5rem auto !important;
        padding: 1rem !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }
    
    /* Títulos de página */
    .page-header h1,
    .page-title {
        font-size: 1.3rem !important;
        text-align: center !important;
    }
    
    /* Breadcrumbs */
    .breadcrumb {
        font-size: 0.8rem !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    /* Botões voltar */
    .back-button {
        margin: 0 auto 1rem auto !important;
        display: flex !important;
        justify-content: center !important;
        width: fit-content !important;
    }
}

/* === PÁGINA DE CHECKOUT === */
@media (max-width: 768px) {
    .checkout-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .checkout-main,
    .checkout-sidebar {
        width: 100% !important;
    }
    
    .checkout-section {
        padding: 1rem !important;
        margin-bottom: 0.75rem !important;
        border-radius: 10px !important;
    }
    
    .checkout-section h2,
    .checkout-section h3 {
        font-size: 1rem !important;
    }
    
    .address-form input,
    .address-form select {
        font-size: 16px !important; /* Evita zoom no iOS */
    }
    
    .shipping-option {
        padding: 0.75rem !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .payment-methods-grid {
        grid-template-columns: 1fr !important;
    }
    
    .cart-item-checkout {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }
    
    .cart-item-image {
        width: 60px !important;
        height: 60px !important;
    }
}

/* === PÁGINA DE PEDIDOS === */
@media (max-width: 768px) {
    .order-card {
        padding: 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    .order-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.5rem !important;
    }
    
    .order-info {
        width: 100% !important;
    }
    
    .order-items {
        flex-direction: column !important;
    }
    
    .order-item {
        flex-direction: row !important;
        gap: 0.75rem !important;
    }
    
    .order-item-image {
        width: 50px !important;
        height: 50px !important;
    }
    
    .order-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .order-actions button,
    .order-actions a {
        width: 100% !important;
        text-align: center !important;
    }
}

/* === PÁGINA DE PERFIL === */
@media (max-width: 768px) {
    .profile-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .profile-sidebar,
    .profile-main {
        width: 100% !important;
    }
    
    .profile-menu {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
    }
    
    .profile-menu a,
    .profile-menu button {
        flex: 1 1 calc(50% - 0.25rem) !important;
        min-width: 120px !important;
        text-align: center !important;
        padding: 0.75rem !important;
        font-size: 0.85rem !important;
    }
    
    .profile-form input,
    .profile-form select,
    .profile-form textarea {
        font-size: 16px !important;
    }
    
    .profile-section {
        padding: 1rem !important;
    }
    
    .address-card {
        padding: 1rem !important;
    }
}

/* === PÁGINA DE FAVORITOS === */
@media (max-width: 768px) {
    .favorites-grid,
    .favoritos-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        padding: 0 !important;
    }
    
    .favorite-card,
    .favorito-card {
        padding: 0.5rem !important;
        border-radius: 8px !important;
    }
    
    .favorite-image,
    .favorito-image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 1 !important;
    }
    
    .favorite-info {
        padding: 0.5rem 0 !important;
    }
    
    .favorite-name {
        font-size: 0.8rem !important;
        -webkit-line-clamp: 2 !important;
    }
}

/* === PÁGINA DE PRODUTO INDIVIDUAL === */
@media (max-width: 768px) {
    .product-page {
        padding: 100px 0.5rem 2rem 0.5rem !important;
    }
    
    .product-container {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .product-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .product-gallery,
    .product-info {
        width: 100% !important;
    }
    
    .product-main-image {
        width: 100% !important;
        max-height: 300px !important;
        object-fit: contain !important;
    }
    
    .product-thumbnails {
        display: flex !important;
        gap: 0.5rem !important;
        overflow-x: auto !important;
        padding: 0.5rem 0 !important;
    }
    
    .product-thumbnail {
        width: 60px !important;
        height: 60px !important;
        flex-shrink: 0 !important;
    }
    
    .product-title {
        font-size: 1.2rem !important;
    }
    
    .product-price {
        font-size: 1.5rem !important;
    }
    
    .product-actions {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .product-actions button {
        width: 100% !important;
    }
    
    .quantity-selector {
        justify-content: center !important;
    }
    
    .product-description,
    .product-specs {
        padding: 1rem !important;
    }
}

/* === PÁGINAS DE FORMULÁRIO (LOGIN/CADASTRO/RESET) === */
@media (max-width: 768px) {
    .cadastro-page,
    .login-page,
    .reset-page {
        padding: 100px 0.5rem 2rem 0.5rem !important;
        min-height: auto !important;
    }
    
    .cadastro-wrapper,
    .login-wrapper,
    .reset-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .cadastro-container,
    .login-container,
    .reset-container {
        width: calc(100% - 1rem) !important;
        margin: 0 auto !important;
        padding: 1.5rem 1rem !important;
    }
    
    .form-title {
        font-size: 1.3rem !important;
        text-align: center !important;
    }
    
    .form-group input,
    .form-group select {
        font-size: 16px !important;
        padding: 0.75rem !important;
    }
    
    .form-row {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .form-row .form-group {
        width: 100% !important;
    }
    
    .btn-submit,
    .btn-login,
    .btn-register {
        width: 100% !important;
        padding: 0.875rem !important;
        font-size: 1rem !important;
    }
    
    .form-links {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.75rem !important;
    }
}

/* === PÁGINAS INSTITUCIONAIS (AJUDA/SOBRE/POLÍTICAS) === */
@media (max-width: 768px) {
    .help-page,
    .about-page,
    .privacy-page,
    .terms-page,
    .policy-page {
        padding: 100px 0.5rem 2rem 0.5rem !important;
    }
    
    .help-container,
    .about-container,
    .privacy-container,
    .terms-container,
    .policy-container {
        width: calc(100% - 1rem) !important;
        padding: 0 !important;
    }
    
    .help-section,
    .about-section,
    .policy-section,
    .faq-section,
    .content-section {
        background: white !important;
        padding: 1rem !important;
        margin: 0.5rem auto !important;
        border-radius: 10px !important;
        width: calc(100% - 1rem) !important;
        max-width: calc(100% - 1rem) !important;
        box-sizing: border-box !important;
    }
    
    .section-title,
    .help-title,
    .faq-title {
        font-size: 1.1rem !important;
    }
    
    .faq-item {
        padding: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .faq-question {
        font-size: 0.9rem !important;
        padding-right: 2rem !important;
    }
    
    .faq-answer {
        font-size: 0.85rem !important;
        line-height: 1.5 !important;
    }
    
    /* Cards de contato/info */
    .contact-card,
    .info-box {
        padding: 1rem !important;
        margin: 0.5rem auto !important;
        width: calc(100% - 1rem) !important;
    }
    
    .contact-methods {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .contact-method {
        width: 100% !important;
    }
}

/* === RESPONSIVIDADE FOOTER === */
@media (max-width: 768px) {
    .footer {
        padding: 1.5rem 0.5rem !important;
    }
    
    .footer-content {
        flex-direction: column !important;
        gap: 1.5rem !important;
        text-align: center !important;
    }
    
    .footer-section {
        width: 100% !important;
    }
    
    .footer-links {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
    
    .footer-social {
        justify-content: center !important;
    }
    
    .footer-bottom {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }
}

/* === PRODUTOS.HTML RESPONSIVO === */
@media (max-width: 768px) {
    .products-page {
        padding: 100px 0.5rem 2rem 0.5rem !important;
    }
    
    .products-page .page-header {
        width: calc(100% - 1rem) !important;
        margin: 0 auto 1rem auto !important;
        padding: 1rem !important;
    }
    
    .products-filters {
        flex-direction: column !important;
        gap: 0.75rem !important;
        padding: 1rem !important;
        width: calc(100% - 1rem) !important;
        margin: 0 auto 1rem auto !important;
        background: white !important;
        border-radius: 10px !important;
    }
    
    .filter-group {
        width: 100% !important;
    }
    
    .filter-group select,
    .filter-group input {
        width: 100% !important;
        font-size: 16px !important;
    }
    
    .products-grid-page {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
        padding: 0.5rem !important;
        width: calc(100% - 1rem) !important;
        margin: 0 auto !important;
        background: white !important;
        border-radius: 10px !important;
    }
    
    .products-grid-page .product-card {
        width: 100% !important;
        min-width: unset !important;
        max-width: unset !important;
    }
}

/* === GRID ADAPTATIVO 4K+ === */
@media (min-width: 2000px) {
    .products-container,
    .checkout-container,
    .profile-container,
    .orders-container {
        max-width: 1800px !important;
    }
    
    .products-grid-page {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    }
}

