/* ============================================
   ESTILOS RESPONSIVE PERSONALIZADOS
   MARESTRONG - Mejoras de responsividad
   ============================================ */

/* Prevenir scroll horizontal en todos los tamaños */
* {
    max-width: 100%;
}

html, body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-width: 100vw !important;
}

.container, .container-fluid {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

.row {
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
}

/* Pantallas extra pequeñas (menos de 400px) */
@media (max-width: 400px) {
    /* Banner MARESTRONG - pantallas muy pequeñas */
    .banner-style3 .title {
        font-size: 28px !important;
        line-height: 1.1 !important;
    }
    
    .banner-style3 .title span {
        font-size: 28px !important;
        letter-spacing: 0 !important;
    }
    
    .banner-style3 p {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    
    .banner-wrapper.style3 {
        min-height: auto !important;
    }
    
    .container {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Móviles pequeños (320px - 575px) */
@media (max-width: 575px) {
    /* Banner section - MARESTRONG */
    .banner-wrapper {
        padding: 20px 10px !important;
    }
    
    .banner-wrapper .overlay {
        opacity: 0.7 !important;
    }
    
    /* Navbar y logo */
    .header-section .logo img {
        max-height: 50px;
    }
    
    /* Tarjetas de productos */
    .dishes-card-wrap.style4 {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    .dishes-card.style5 {
        margin: 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Títulos */
    .title-area .title {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }
    
    .title-area .sub-title {
        font-size: 14px !important;
    }
    
    .title-area .sub-title img {
        width: 20px !important;
    }
    
    /* Botones */
    .theme-btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    /* Filtros de productos */
    .nav-pills .nav-link {
        font-size: 12px !important;
        padding: 8px 15px !important;
    }
    
    /* Carruseles */
    .carousel-btn {
        width: 25px !important;
        height: 25px !important;
        font-size: 10px !important;
    }
    
    .carousel-btn.prev {
        left: 5px !important;
    }
    
    .carousel-btn.next {
        right: 5px !important;
    }
    
    .carousel-dots .dot {
        width: 6px !important;
        height: 6px !important;
    }
    
    .product-image-carousel {
        min-height: 200px !important;
    }
    
    /* Footer */
    .footer-section {
        padding: 40px 0 20px !important;
    }
    
    .footer-widget {
        margin-bottom: 30px !important;
        text-align: center !important;
    }
    
    .footer-widget .logo {
        margin: 0 auto 20px !important;
    }
    
    /* Contenido de tarjetas */
    .dishes-content h3 {
        font-size: 18px !important;
    }
    
    .dishes-content h6 {
        font-size: 14px !important;
    }
    
    .dishes-content .text {
        font-size: 13px !important;
    }
    
    /* Imágenes de productos - Optimizadas para móvil */
    .dishes-card .dishes-thumb {
        width: 100% !important;
        height: 220px !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #f5f5f5 !important;
    }
    
    .dishes-card .dishes-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }
    
    .dishes-card.style4 .dishes-thumb {
        height: 200px !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    .dishes-card.style5 .dishes-thumb {
        height: 220px !important;
    }
    
    /* Asegurar que el contenedor de la tarjeta mantenga proporciones */
    .dishes-card {
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }
    
    .dishes-content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Banner y hero */
    .banner-wrapper .banner-content h2 {
        font-size: 28px !important;
    }
    
    .banner-wrapper .banner-content p {
        font-size: 14px !important;
    }
    
    /* Filtro de precio en sidebar */
    .price-filter-widget {
        padding: 15px 10px !important;
    }
    
    .price-inputs-row {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .price-input-group {
        width: 100% !important;
    }
    
    .price-separator {
        display: none !important;
    }
}

/* Tablets (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .dishes-card-wrap.style4 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    
    .title-area .title {
        font-size: 28px !important;
    }
    
    .dishes-content h3 {
        font-size: 20px !important;
    }
    
    /* Imágenes de productos en tablets pequeñas */
    .dishes-card .dishes-thumb {
        height: 200px !important;
    }
    
    .dishes-card .dishes-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

/* Tablets landscape y pantallas medianas (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .dishes-card-wrap.style4 {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 25px !important;
    }
    
    .container {
        max-width: 720px !important;
    }
    
    .title-area .title {
        font-size: 32px !important;
    }
    
    /* Imágenes de productos en tablets medianas */
    .dishes-card .dishes-thumb {
        height: 220px !important;
    }
    
    .dishes-card .dishes-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
    
    /* Sidebar */
    .main-sidebar {
        margin-bottom: 40px !important;
    }
}

/* Laptops pequeñas (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .dishes-card-wrap.style4 {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px !important;
    }
    
    .container {
        max-width: 960px !important;
    }
}

/* Desktops (1200px+) */
@media (min-width: 1200px) {
    .dishes-card-wrap.style4 {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 30px !important;
    }
}

/* Ajustes generales para todas las pantallas pequeñas */
@media (max-width: 991px) {
    /* Padding de secciones */
    .section-padding {
        padding: 60px 0 !important;
    }
    
    /* Offcanvas menu */
    .mean-container .mean-nav {
        margin-top: 0 !important;
    }
    
    .mean-container .mean-nav ul li a {
        font-size: 16px !important;
        padding: 12px 15px !important;
    }
    
    /* Shapes decorativas - ocultar en móvil para mejorar rendimiento */
    .shape1, .shape2, .shape3 {
        display: none !important;
    }
    
    /* Ajustar imágenes */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Banner y hero sections */
    .banner-wrapper,
    .about-wrapper,
    .offer-wrapper3 {
        padding: 40px 0 !important;
    }
    
    /* Ofertas */
    .offer-card {
        margin-bottom: 20px !important;
    }
    
    .offer-thumb img {
        max-width: 200px !important;
    }
    
    /* Breadcrumb */
    .breadcrumb-wrapper {
        padding: 100px 0 60px !important;
    }
    
    .breadcrumb-wrapper h1 {
        font-size: 32px !important;
    }
}

/* Ajustes específicos para orientación landscape en móviles */
@media (max-width: 767px) and (orientation: landscape) {
    .section-padding {
        padding: 40px 0 !important;
    }
    
    .title-area .title {
        font-size: 22px !important;
    }
    
    .banner-wrapper {
        min-height: auto !important;
    }
}

/* Asegurar que las tablas sean responsive */
@media (max-width: 767px) {
    table {
        display: block !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Cart table específico */
    .cart-wrapper table {
        font-size: 13px !important;
    }
    
    .cart-wrapper table img {
        max-width: 60px !important;
    }
    
    .cart-wrapper .quantity-input {
        width: 60px !important;
    }
}

/* Shop grid/list views */
@media (max-width: 767px) {
    .shop-grid,
    .shop-list {
        grid-template-columns: 1fr !important;
    }
    
    .sort-bar {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: flex-start !important;
    }
    
    .sort-bar .woocommerce-result-count,
    .sort-bar .woocommerce-ordering {
        width: 100% !important;
    }
}

/* Shop details - producto individual */
@media (max-width: 991px) {
    .shop-details-wrapper {
        flex-direction: column !important;
    }
    
    .product-detail-swiper {
        margin-bottom: 30px !important;
    }
    
    .shop-details-content {
        padding-left: 0 !important;
    }
}

/* Contact page */
@media (max-width: 767px) {
    .contact-wrapper .contact-form {
        padding: 30px 20px !important;
    }
    
    .contact-info-card {
        padding: 20px !important;
        margin-bottom: 20px !important;
    }
}

/* Pagination */
@media (max-width: 575px) {
    .page-nav-wrap ul li {
        margin: 0 3px !important;
    }
    
    .page-nav-wrap ul li a {
        padding: 8px 12px !important;
        font-size: 14px !important;
    }
}

/* Swiper navigation fix */
@media (max-width: 767px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 35px !important;
        height: 35px !important;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 16px !important;
    }
}

/* Asegurar que modals sean responsive */
@media (max-width: 575px) {
    .modal-dialog {
        margin: 10px !important;
    }
    
    .modal-content {
        padding: 20px !important;
    }
}

/* Fix para overflow horizontal */
body {
    overflow-x: hidden !important;
}

.container-fluid {
    overflow-x: hidden !important;
}

/* Mejoras de tap targets para móvil */
@media (max-width: 767px) {
    a, button, input, select, textarea {
        min-height: 44px !important;
        min-width: 44px !important;
    }
    
    .theme-btn {
        min-height: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* ============================================
   RESPONSIVE ESPECÍFICO PARA CART.HTML
   ============================================ */
@media (max-width: 991px) {
    /* Mejoras adicionales para la tabla del carrito */
    .cart-wrapper tbody tr {
        background: rgba(0, 0, 0, 0.3) !important;
    }
    
    .cart-wrapper .product-info {
        width: 100% !important;
    }
    
    /* Botones del carrito */
    .cart-buttons {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .cart-buttons .theme-btn {
        width: 100% !important;
    }
    
    /* Cupón */
    .coupon-form {
        flex-direction: column !important;
    }
    
    .coupon-form input {
        width: 100% !important;
        margin-bottom: 10px !important;
    }
}

@media (max-width: 575px) {
    /* Ajustes específicos para móviles pequeños en cart */
    .cart-section {
        padding: 40px 0 !important;
    }
    
    .cart-wrapper h1,
    .cart-wrapper h2 {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }
    
    .cart-totals {
        padding: 15px !important;
    }
    
    .cart-totals h3 {
        font-size: 20px !important;
    }
    
    .quantity-selector {
        min-width: auto !important;
    }
    
    .quantity-selector button {
        padding: 5px 10px !important;
    }
}

/* ============================================
   RESPONSIVE ESPECÍFICO PARA INDEX.HTML
   ============================================ */
@media (max-width: 991px) {
    /* Banner principal - sección de inicio con MARESTRONG */
    .banner-section {
        padding: 80px 0 60px !important;
        overflow: hidden !important;
    }
    
    .banner-style3 {
        padding: 40px 20px !important;
    }
    
    .banner-section .banner-style3 .subtitle {
        font-size: 36px !important;
        margin-bottom: 20px !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        -webkit-text-stroke: 0 !important;
        color: var(--theme2) !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    }
    
    .banner-style3 .title {
        font-size: 48px !important;
        line-height: 1.2 !important;
        margin-bottom: 20px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .banner-style3 .title span {
        display: block !important;
        max-width: 100% !important;
    }
    
    .banner-style3 p {
        font-size: 15px !important;
        line-height: 1.7 !important;
        margin-bottom: 25px !important;
        text-align: justify !important;
    }
    
    /* Banner bottom - redes sociales y ubicación */
    .banner-bottom {
        flex-direction: column !important;
        padding: 20px 15px !important;
        gap: 15px !important;
    }
    
    .banner-bottom .container-fluid {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }
    
    .banner-bottom .fancy-item {
        font-size: 14px !important;
        justify-content: center !important;
    }
    
    .banner-bottom .social-meta {
        width: 100% !important;
        text-align: center !important;
        flex-direction: row !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
    }
    
    .banner-bottom .social-meta p {
        margin: 0 !important;
        white-space: nowrap !important;
        font-size: 14px !important;
    }
    
    .banner-bottom .social-meta ul {
        justify-content: center !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
        display: flex !important;
        flex-direction: row !important;
    }
    
    .banner-bottom .social-meta ul li {
        display: inline-block !important;
    }
    
    /* Banner principal */
    .banner-content {
        text-align: center !important;
    }
    
    .banner-content h1,
    .banner-content h2 {
        font-size: 32px !important;
        line-height: 1.3 !important;
        margin-bottom: 20px !important;
    }
    
    .banner-content .sub-title {
        font-size: 16px !important;
    }
    
    .banner-content .text,
    .banner-content p {
        font-size: 15px !important;
        margin-bottom: 25px !important;
    }
    
    /* Sección de productos */
    #productos {
        padding: 50px 0 !important;
    }
    
    .section-title {
        font-size: 28px !important;
        margin-bottom: 30px !important;
    }
    
    /* Navegación de productos */
    .nav-pills {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
    }
    
    .nav-pills .nav-link {
        flex: 0 1 auto !important;
        padding: 10px 15px !important;
        font-size: 13px !important;
    }
    
    /* About section */
    .about-section {
        padding: 50px 0 !important;
    }
    
    .about-content {
        text-align: center !important;
        padding: 30px 20px !important;
    }
    
    .about-content h2 {
        font-size: 28px !important;
        margin-bottom: 20px !important;
    }
    
    .about-content p {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
    
    /* Testimonials */
    .testimonial-section {
        padding: 50px 0 !important;
    }
    
    .testimonial-wrapper {
        padding: 30px 20px !important;
    }
    
    .testimonial-item {
        padding: 25px !important;
    }
    
    .testimonial-item .client-info {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .testimonial-item .client-thumb {
        margin-bottom: 15px !important;
    }
    
    /* Formulario de contacto */
    #formulario {
        padding: 50px 0 !important;
    }
    
    .contact-form-wrapper {
        padding: 30px 20px !important;
    }
    
    .contact-form h3 {
        font-size: 24px !important;
        margin-bottom: 25px !important;
    }
    
    .form-group label {
        font-size: 14px !important;
    }
    
    .form-control {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
    
    /* Instagram section */
    #ig {
        padding: 50px 0 !important;
    }
    
    .instagram-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

@media (max-width: 575px) {
    /* Banner móvil pequeño - sección MARESTRONG */
    .banner-section {
        padding: 60px 0 40px !important;
    }
    
    .banner-style3 {
        padding: 30px 15px !important;
    }
    
    .banner-style3 .subtitle {
        font-size: 14px !important;
        margin-bottom: 10px !important;
    }
    
    .banner-style3 .title {
        font-size: 36px !important;
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }
    
    .banner-style3 .title span {
        font-size: 36px !important;
    }
    
    .banner-style3 p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
        padding: 0 10px !important;
    }
    
    /* Banner bottom en móvil */
    .banner-bottom {
        padding: 15px 10px !important;
    }
    
    .banner-bottom .fancy-item {
        font-size: 12px !important;
    }
    
    .banner-bottom .social-meta p {
        font-size: 13px !important;
    }
    
    .banner-bottom .social-meta ul li a {
        width: 35px !important;
        height: 35px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Banner móvil pequeño */
    .banner-content h1,
    .banner-content h2 {
        font-size: 26px !important;
    }
    
    .banner-content p {
        font-size: 14px !important;
    }
    
    /* Productos móvil pequeño */
    #productos {
        padding: 40px 0 !important;
    }
    
    .section-title {
        font-size: 24px !important;
    }
    
    .nav-pills .nav-link {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
    
    /* Formulario móvil pequeño */
    .contact-form-wrapper {
        padding: 25px 15px !important;
    }
    
    .contact-form h3 {
        font-size: 20px !important;
    }
    
    /* Instagram grid móvil */
    .instagram-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Footer en móvil */
    .footer-section {
        padding: 30px 0 15px !important;
    }
    
    .footer-widget {
        margin-bottom: 25px !important;
        text-align: center !important;
    }
    
    .footer-widget h3 {
        font-size: 18px !important;
    }
    
    .footer-widget p,
    .footer-widget li {
        font-size: 13px !important;
    }
}

/* Fix para menú móvil en todas las páginas */
@media (max-width: 991px) {
    .mean-container .mean-nav {
        background: var(--dark) !important;
    }
    
    .mean-container .mean-nav ul li a {
        color: white !important;
        padding: 15px 20px !important;
        font-size: 15px !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .mean-container .mean-nav ul li a:hover {
        background: rgba(252, 121, 26, 0.1) !important;
        color: #FC791A !important;
    }
    
    /* Header sticky en móvil */
    .header-sticky.sticky {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
        background: var(--dark) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    }
}

/* ============================================
   RESPONSIVE ESPECÍFICO PARA SHOP-DETAILS.PHP
   SISTEMA DE VARIANTES CON IMÁGENES
   ============================================ */

/* Galería principal de imágenes */
@media (max-width: 991px) {
    .product-big-img,
    .product-main-image {
        margin-bottom: 30px !important;
    }
    
    .product-detail-carousel {
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    .product-detail-swiper {
        width: 100% !important;
        height: auto !important;
    }
    
    .swiper-slide {
        height: auto !important;
    }
    
    .dishes-thumb {
        width: 100% !important;
        height: 300px !important;
        overflow: hidden !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        background: rgba(0, 0, 0, 0.2) !important;
    }
    
    .dishes-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
    }
}

@media (max-width: 575px) {
    .dishes-thumb {
        height: 200px !important;
    }
}

/* Sección de variantes con galería de thumbnails */
@media (max-width: 991px) {
    .variantes-gallery-section {
        margin: 25px 0 !important;
        padding: 15px !important;
        border-radius: 8px !important;
        background: rgba(252, 121, 26, 0.05) !important;
    }
    
    .variantes-gallery-section h5 {
        font-size: 16px !important;
        margin-bottom: 15px !important;
        color: white !important;
    }
    
    .variantes-gallery {
        display: flex !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
    }
    
    .variante-image-thumb {
        flex: 0 0 auto !important;
        cursor: pointer !important;
        border: 2px solid transparent !important;
        border-radius: 8px !important;
        padding: 5px !important;
        transition: all 0.3s ease !important;
        background: rgba(0, 0, 0, 0.2) !important;
    }
    
    .variante-image-thumb:hover {
        border-color: #FC791A !important;
        transform: scale(1.05) !important;
    }
    
    .variante-image-thumb.active {
        border-color: #FC791A !important;
        background: rgba(252, 121, 26, 0.1) !important;
    }
    
    .variante-image-thumb img {
        width: 60px !important;
        height: 60px !important;
        object-fit: cover !important;
        border-radius: 5px !important;
        display: block !important;
    }
    
    .variante-image-thumb p {
        font-size: 0.75em !important;
        margin-top: 5px !important;
        text-align: center !important;
        color: #aaa !important;
        word-break: break-word !important;
    }
}

@media (max-width: 575px) {
    .variantes-gallery-section {
        margin: 20px 0 !important;
        padding: 12px !important;
    }
    
    .variantes-gallery-section h5 {
        font-size: 14px !important;
        margin-bottom: 12px !important;
    }
    
    .variantes-gallery {
        gap: 8px !important;
    }
    
    .variante-image-thumb img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .variante-image-thumb p {
        font-size: 0.7em !important;
        margin-top: 3px !important;
    }
}

/* Información del producto */
@media (max-width: 991px) {
    .row.gx-5 {
        gap: 30px !important;
        align-items: flex-start !important;
    }
    
    .row.gx-5 .col-md-6:first-child {
        order: 1 !important;
    }
    
    .row.gx-5 .col-md-6:last-child {
        order: 2 !important;
    }
    
    .row.gx-5 h1 {
        font-size: 28px !important;
        margin-bottom: 15px !important;
    }
    
    .row.gx-5 .lead {
        font-size: 18px !important;
        margin-bottom: 20px !important;
    }
    
    .row.gx-5 p {
        font-size: 15px !important;
        line-height: 1.6 !important;
        margin-bottom: 20px !important;
    }
}

@media (max-width: 575px) {
    .row.gx-5 {
        flex-direction: column !important;
        gap: 20px !important;
    }
    
    .row.gx-5 .col-md-6 {
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    .row.gx-5 h1 {
        font-size: 24px !important;
    }
    
    .row.gx-5 .lead {
        font-size: 16px !important;
    }
}

/* Selectores y controles del producto */
@media (max-width: 991px) {
    .form-control,
    .product-variants-select {
        width: 100% !important;
        max-width: 300px !important;
        padding: 12px 15px !important;
        font-size: 14px !important;
        margin-bottom: 20px !important;
    }
    
    .d-flex.gap-2 {
        flex-wrap: wrap !important;
        gap: 15px !important;
    }
    
    .d-flex.gap-2 .theme-btn {
        flex: 1 !important;
        min-width: 150px !important;
        padding: 12px 20px !important;
    }
}

@media (max-width: 575px) {
    .form-control,
    .product-variants-select {
        max-width: 100% !important;
        font-size: 13px !important;
        padding: 10px 12px !important;
    }
    
    .d-flex.gap-2 {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .d-flex.gap-2 .theme-btn {
        width: 100% !important;
        min-width: auto !important;
        padding: 12px 16px !important;
    }
}

/* Sección de productos relacionados */
@media (max-width: 991px) {
    .related-products-section {
        margin-top: 40px !important;
        padding-top: 40px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    .related-products-section h2 {
        font-size: 28px !important;
        margin-bottom: 20px !important;
    }
    
    .related-products-section p {
        font-size: 15px !important;
        margin-bottom: 30px !important;
    }
    
    .related-products-swiper {
        width: 100% !important;
    }
}

@media (max-width: 575px) {
    .related-products-section {
        margin-top: 30px !important;
        padding-top: 30px !important;
    }
    
    .related-products-section h2 {
        font-size: 24px !important;
    }
    
    .related-products-section p {
        font-size: 14px !important;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 30px !important;
        height: 30px !important;
        top: auto !important;
        bottom: -40px !important;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 14px !important;
    }
}

/* Mejoras generales de responsive para main.container */
@media (max-width: 991px) {
    main.container {
        margin-top: 100px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 575px) {
    main.container {
        margin-top: 80px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* ============================================
   REGLAS GENERALES DE HEADER (de Valentine theme que funciona perfecto)
   Aplicadas a TODOS los temas
   ============================================ */

/* Header principal - estructura base */
.header-section-3 {
    margin-top: 0 !important;
    position: relative;
    padding: 0 !important;
}

#header-sticky,
.header-3 {
    position: relative;
    top: 0;
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
    left: 0;
    right: 0;
}

.main-header-wrapper,
.main-header-items {
    margin: 0 !important;
    padding: 0 !important;
}

/* Header sticky - comportamiento fijo */
#header-sticky.sticky,
.header-3.sticky {
    position: fixed !important;
    top: 0 !important;
    width: 100%;
    left: 0;
    right: 0;
    margin: 0 !important;
}

/* Burger menu - color negro cuando header es sticky */
.header__hamburger {
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
}

.header__hamburger i {
    color: inherit;
    transition: color 0.3s ease;
    -webkit-transition: color 0.3s ease;
}

#header-sticky.sticky .header__hamburger i,
.header-3.sticky .header__hamburger i {
    color: #000 !important;
}

#header-sticky.sticky .sidebar__toggle i,
.header-3.sticky .sidebar__toggle i {
    color: #000 !important;
}

/* ============================================
   FIXES PARA OPERA GX, BRAVE Y NAVEGADORES CHROMIUM
   Prevenir saltos de línea en navbar
   ============================================ */

/* Desktop - Pantallas grandes (1200px+) */
@media (min-width: 992px) {
    /* Resetear altura del header para evitar espacios extra */
    .header-section-3 {
        min-height: auto !important;
        height: auto !important;
        max-height: 85px !important;
        overflow: visible !important;
    }
    
    .header-main {
        min-height: 80px !important;
        height: auto !important;
        max-height: 85px !important;
        overflow: visible !important;
    }
    
    /* Forzar flexbox sin wrap en header y navbar - ESTADO INICIAL Y STICKY */
    .header-section-3,
    #header-sticky,
    .header-3,
    .header-main {
        display: -webkit-flex !important;
        display: -moz-flex !important;
        display: flex !important;
        -webkit-flex-wrap: nowrap !important;
        -moz-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
        -webkit-align-items: center !important;
        -moz-align-items: center !important;
        align-items: center !important;
        width: 100% !important;
        overflow: visible !important;
        -webkit-box-sizing: border-box !important;
        -moz-box-sizing: border-box !important;
        box-sizing: border-box !important;
        -webkit-justify-content: space-between !important;
        -moz-justify-content: space-between !important;
        justify-content: space-between !important;
    }
    
    /* Reducir espaciado entre elementos del header */
    .header-main .main-menu ul li {
        margin-inline-end: 15px !important;
        margin-right: 15px !important;
    }
    
    .header-main .main-menu ul li:last-child {
        margin-inline-end: 0 !important;
        margin-right: 0 !important;
    }
    
    .container-fluid,
    .main-header-wrapper {
        display: -webkit-flex !important;
        display: -moz-flex !important;
        display: flex !important;
        -webkit-flex-wrap: nowrap !important;
        -moz-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
        -webkit-align-items: center !important;
        -moz-align-items: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 15px !important;
    }
    
    .main-header-items {
        display: -webkit-flex !important;
        display: -moz-flex !important;
        display: flex !important;
        -webkit-flex-wrap: nowrap !important;
        -moz-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
        -webkit-align-items: center !important;
        -moz-align-items: center !important;
        align-items: center !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .mega-menu-wrapper {
        display: -webkit-flex;
        display: -moz-flex;
        display: flex;
        -webkit-flex: 1;
        -moz-flex: 1;
        flex: 1;
        -webkit-align-items: center;
        -moz-align-items: center;
        align-items: center;
        width: 100%;
        min-width: 0;
    }
    
    .header-main {
        -webkit-justify-content: space-between;
        -moz-justify-content: space-between;
        justify-content: space-between;
    }
    
    .header-middle {
        -webkit-flex: 1 1 auto !important;
        -moz-flex: 1 1 auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        display: -webkit-flex !important;
        display: -moz-flex !important;
        display: flex !important;
        -webkit-justify-content: center !important;
        -moz-justify-content: center !important;
        justify-content: center !important;
        -webkit-flex-wrap: nowrap !important;
        -moz-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
    }
    
    .mean__menu-wrapper {
        width: 100% !important;
        -webkit-flex: 1 1 auto !important;
        -moz-flex: 1 1 auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-width: none !important;
        -webkit-flex-wrap: nowrap !important;
        -moz-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
        overflow: visible !important;
    }
    
    .main-menu {
        width: 100% !important;
        overflow: visible !important;
    }
    
    .main-menu nav {
        width: 100% !important;
    }
    
    .main-menu ul {
        display: -webkit-flex !important;
        display: -moz-flex !important;
        display: flex !important;
        -webkit-flex-wrap: nowrap !important;
        -moz-flex-wrap: nowrap !important;
        flex-wrap: nowrap !important;
        -webkit-justify-content: center !important;
        -moz-justify-content: center !important;
        justify-content: center !important;
        -webkit-align-items: center !important;
        -moz-align-items: center !important;
        align-items: center !important;
        gap: 2px !important;
        margin: 0 !important;
        padding: 0 5px !important;
        list-style: none !important;
        width: 100% !important;
    }
    
    .main-menu li {
        display: inline-flex !important;
        -webkit-flex-shrink: 1 !important;
        -moz-flex-shrink: 1 !important;
        flex-shrink: 1 !important;
        -webkit-flex-grow: 0 !important;
        -moz-flex-grow: 0 !important;
        flex-grow: 0 !important;
        white-space: nowrap !important;
        min-width: auto !important;
        padding: 0 2px !important;
        margin: 0 !important;
    }
    
    /* Selector más específico para sobrescribir main.css */
    .header-main .main-menu ul li a,
    .main-menu li a {
        font-size: 14px !important;
        padding: 5px 6px !important;
        display: inline-block !important;
        white-space: nowrap !important;
        -webkit-text-overflow: clip !important;
        -moz-text-overflow: clip !important;
        text-overflow: clip !important;
        overflow: visible !important;
        line-height: 1.2 !important;
    }
    
    .header-left {
        -webkit-flex-shrink: 0 !important;
        -moz-flex-shrink: 0 !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        margin-right: 5px !important;
        display: -webkit-flex !important;
        display: -moz-flex !important;
        display: flex !important;
        -webkit-align-items: center !important;
        -moz-align-items: center !important;
        align-items: center !important;
    }
    
    /* Hamburger menu alineado */
    .header__hamburger,
    .sidebar__toggle {
        display: -webkit-flex !important;
        display: -moz-flex !important;
        display: flex !important;
        -webkit-align-items: center !important;
        -moz-align-items: center !important;
        align-items: center !important;
        -webkit-justify-content: center !important;
        -moz-justify-content: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 10px !important;
        height: 100% !important;
    }
    
    .header-right {
        -webkit-flex-shrink: 0 !important;
        -moz-flex-shrink: 0 !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        gap: 5px !important;
        margin-left: 5px !important;
        display: -webkit-flex !important;
        display: -moz-flex !important;
        display: flex !important;
        -webkit-align-items: center !important;
        -moz-align-items: center !important;
        align-items: center !important;
    }
    
    .cart-link {
        display: -webkit-flex;
        display: -moz-flex;
        display: flex;
        -webkit-align-items: center;
        -moz-align-items: center;
        align-items: center;
        -webkit-justify-content: center;
        -moz-justify-content: center;
        justify-content: center;
    }
    
    .logo-image {
        margin: 0 5px;
    }
    
    .logo-image img {
        max-width: 50px;
        height: auto;
        width: 50px;
    }
    
    #navbar-logo {
        width: 50px;
        height: auto;
        max-width: 50px;
    }
}

/* Pantallas medianas (1025px - 1399px) */
@media (min-width: 1025px) and (max-width: 1399px) {
    .header-main .main-menu ul li a,
    .main-menu li a {
        font-size: 13px !important;
        padding: 4px 5px !important;
    }
    
    .main-menu ul {
        gap: 1px !important;
        padding: 0 3px !important;
    }
    
    .main-menu li {
        padding: 0 1px !important;
    }
    
    .header-main .main-menu ul li {
        margin-inline-end: 10px !important;
        margin-right: 10px !important;
    }
}

/* Pantallas pequeñas desktop (992px - 1199px) - Opera GX típico */
@media (min-width: 992px) and (max-width: 1199px) {
    .header-main .main-menu ul li a,
    .main-menu li a {
        font-size: 12px !important;
        padding: 3px 4px !important;
    }
    
    .main-menu ul {
        gap: 0 !important;
        padding: 0 2px !important;
    }
    
    .main-menu li {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .header-main .main-menu ul li {
        margin-inline-end: 7px !important;
        margin-right: 7px !important;
    }
    
    .header-right {
        gap: 3px !important;
        margin-left: 3px !important;
    }
    
    .header-left {
        margin-right: 3px !important;
    }
    
    .cart-link i {
        font-size: 20px !important;
    }
}

/* Pantallas muy pequeñas desktop (992px - 1024px) - Ajuste extra */
@media (min-width: 992px) and (max-width: 1024px) {
    .header-main .main-menu ul li a,
    .main-menu li a {
        font-size: 11px !important;
        padding: 2px 3px !important;
        letter-spacing: -0.3px !important;
    }
    
    .main-menu ul {
        gap: 0 !important;
        padding: 0 1px !important;
    }
    
    .header-main .main-menu ul li {
        margin-inline-end: 5px !important;
        margin-right: 5px !important;
    }
}

/* ============================================
   REGLAS RESPONSIVE MOBILE (de Valentine theme)
   ============================================ */

/* Mobile - todas las pantallas pequeñas */
@media (max-width: 768px) {
    .header-section-3 {
        width: 100%;
        overflow: visible;
        position: relative;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    #header-sticky,
    .header-3 {
        position: relative !important;
        top: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100%;
        left: 0;
        right: 0;
    }
    
    #header-sticky.sticky,
    .header-3.sticky {
        position: fixed !important;
        top: 0 !important;
        width: 100%;
        left: 0;
        right: 0;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .header-main {
        height: auto;
        min-height: 60px;
        width: 100%;
        margin: 0 !important;
    }
    
    .container-fluid {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin: 0 !important;
    }
    
    .main-header-wrapper {
        width: 100%;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .main-header-items {
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Tablet - pantallas medianas */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-section-3 {
        overflow: visible;
        position: relative;
    }
    
    .header-main {
        height: auto;
        min-height: 70px;
    }
}
