/*
 * Responsive Custom CSS for MoonOfLilith Theme (below 1200px)
 * Includes WooCommerce, products, index, and general theme adjustments
 * Generated: 2025-11-24
 */

/* ========== GLOBAL BREAKPOINTS ========== */
@media (max-width: 1199px) {
  /* --- General Layout Adjustments --- */
  .container,
  .container-inner,
  .main-section,
  .inner-section,
  .full-container {
    max-width: 100% !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .stretched-section,
  .stretched,
  .stretched-top,
  .stretched-side,
  .stretched-bottom {
    margin: 0 !important;
  }
  /* --- Intro Section Sugerido --- */
  .intro-section, .intro-text {
    text-align: center;
    margin-bottom: 2rem;
  }
  .intro-text .pre-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--themeasy-secondary-text-color, #fff);
    margin-bottom: 1rem;
    letter-spacing: 1px;
  }
  .intro-text .title {
    font-size: 2.2rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 1.2rem;
    line-height: 1.1;
    text-shadow: 0 2px 8px #00000099;
  }
  .intro-text .description {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 2rem;
    text-shadow: 0 1px 4px #00000066;
  }
  /* --- Hide desktop-only elements --- */
  .d-only-desktop {
    display: none !important;
  }
  .d-only-mobile {
    display: block !important;
  }
  /* --- Logo --- */
  .logo.main-logo {
    max-width: 180px !important;
  }
  /* --- Blog/Index --- */
  .post-grid .post-item {
    flex-direction: column !important;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
  .post-grid .post-item .post-thumbnail {
    margin-bottom: 1rem !important;
  }
  .post-grid .post-item .post-content {
    padding: 0 !important;
  }
  /* --- Pagination --- */
  .pagination .nav-links,
  .archive-toolbar-footer .product-grid-pagination ul {
    gap: 4px !important;
  }
  .pagination a,
  .pagination .current,
  .archive-toolbar-footer .product-grid-pagination a.pagination-item {
    min-width: 28px !important;
    height: 28px !important;
    font-size: 0.95rem !important;
    padding: 0 6px !important;
  }
  /* --- Sidebar --- */
  .sidebar-section,
  .sidebar-block,
  .sidebar-section .widget {
    margin-bottom: 1rem !important;
    padding: 0 5px !important;
  }
  /* --- Footer --- */
  .footer-section .footer-content {
    padding: 1rem 0 2rem !important;
  }
  .footer-section .footer-content .footer-item {
    margin-bottom: 1rem !important;
  }
  /* --- WooCommerce Product Grid --- */
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: 48% !important;
    margin-right: 2% !important;
    margin-bottom: 2% !important;
  }
  .woocommerce ul.products li.product:nth-child(2n),
  .woocommerce-page ul.products li.product:nth-child(2n) {
    margin-right: 0 !important;
  }
  .woocommerce ul.products li.product:nth-child(4n),
  .woocommerce-page ul.products li.product:nth-child(4n) {
    margin-right: 2% !important;
  }
  /* --- Product Card --- */
  .woocommerce .card.product {
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: 0 !important;
  }
  .woocommerce .card.product .product-image {
    margin-bottom: 1rem !important;
  }
  .woocommerce .card.product .product-details {
    padding: 0 !important;
  }
  /* --- Product Meta/Actions --- */
  .product-summary-wrapper .product-meta {
    flex-direction: column !important;
    gap: 8px !important;
    padding: 10px !important;
  }
  .product-summary-wrapper .product-action {
    flex-direction: row !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }
  /* --- Cart/Checkout --- */
  .woocommerce-cart .cart-collaterals,
  .woocommerce-checkout .col2-set {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  .woocommerce-cart .cart-collaterals > div,
  .woocommerce-checkout .col2-set .col-1,
  .woocommerce-checkout .col2-set .col-2 {
    width: 100% !important;
    max-width: 100% !important;
  }
  /* --- Forms/Inputs --- */
  input,
  textarea,
  select,
  .form-control {
    font-size: 1rem !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
  }
  /* --- Buttons --- */
  .button,
  button,
  input[type=button],
  input[type=submit],
  input[type=reset] {
    min-width: 110px !important;
    min-height: 40px !important;
    font-size: 1rem !important;
    padding: 0.5rem 1rem !important;
  }
  /* --- Hide sticky sidebar --- */
  .sidebar-section.wp-sidebar.sticky-top {
    display: none !important;
  }
}


/* Siempre dos productos por fila en WooCommerce para <1200px */
@media (max-width: 1199px) {
  .woocommerce ul.products,
  .woocommerce-page ul.products {
    display: flex !important;
    flex-wrap: wrap !important;
  }
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: 48% !important;
    margin-right: 2% !important;
    margin-bottom: 2% !important;
    float: none !important;
    clear: none !important;
  }
  .woocommerce ul.products li.product:nth-child(2n),
  .woocommerce-page ul.products li.product:nth-child(2n) {
    margin-right: 0 !important;
  }
  .woocommerce ul.products li.product:nth-child(2n+1),
  .woocommerce-page ul.products li.product:nth-child(2n+1) {
    clear: left !important;
  }

  /* --- Logo --- */
  .logo.main-logo {
    max-width: 180px !important;
    display: inline-block !important;
  }
  .logo.mobile-logo,
  .logo.sticky-logo {
    display: none !important;
  }
}

/* ========== MOBILE OPTIMIZATIONS (< 768px) ========== */
@media (max-width: 767px) {
  /* Typography adjustments for mobile */
  .intro-text .title {
    font-size: 1.8rem !important;
  }
  .intro-text .description {
    font-size: 1rem !important;
  }
  
  /* Better spacing on mobile */
  .container, .container-inner {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  /* Stack footer items completely */
  .footer-section .footer-content {
    text-align: center;
  }

  .elementor-widget-video .elementor-wrapper {
          margin-bottom: -140px !important;
  }

  .elementor-9840 .elementor-element.elementor-element-41218b7 {
      padding: 6rem 0rem 1rem 0rem !important;
  }

  .elementor-element-8850234,
  .elementor-element-ccbd6a0 {
    width: 50% !important;
  }

  footer,
  footer img,
  footer p,
  footer a,
  footer span,
  footer ul,
  footer li  {
    text-align: center !important;
    margin: auto !important;
  }
  footer .elementor-widget-themeasy-social-icons {
    width: fit-content !important;
    margin: auto;
  }
  footer i.icon {
    padding: 1rem !important;
  }

  .elementor-9840 .elementor-element.elementor-element-198c87f.e-con {
    padding: 1% !important;
  }

  .elementor-9840 .elementor-element.elementor-element-2066f45 > .elementor-widget-container {
      padding: 0 1% !important;
  }

  .container:not(.fluid) {
      padding-left: 1% !important;
      padding-right: 1% !important;
  }

  .post-grid .post-item .post-categories,
  .post-grid .post-item .post-content>*+* {
      padding: 0 0 10px 10px !important;
  }

  .swiper-slide {
      width: 100% !important;
  }

  .swiper.slider .swiper-button-prev {
      display: inline-block !important;
  }

  .header-section .navbar.smart-scroll {
      padding: 0 1%;
  }
}

/* ========== EXTRA SMALL DEVICES (< 480px) ========== */
@media (max-width: 479px) {
  /* Switch to 1 column for products on very small screens */
  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: 100% !important;
    margin-right: 0 !important;
    float: none !important;
  }
  
  /* Ensure images take full width */
  .woocommerce ul.products li.product img {
    width: 100% !important;
    height: auto !important;
  }
  
  /* Buttons full width */
  .button, button, input[type=submit] {
    width: 100% !important;
    margin-bottom: 10px !important;
  }
}

/* ========== END ========== */


/* ✅ 2 columnas de productos en móvil (solo móviles) */
@media (max-width: 767px) {

  /* Cada tarjeta de producto ocupa la mitad del ancho */
  .archive-layout-row .archive-layout-col {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  /* Opcional: un poco de espacio entre productos si se ven demasiado pegados */
  .archive-layout-row {
    row-gap: 1.5rem;
  }
}


/* Quitar textos largos de las cards "Moon Journal" y "Shop" SOLO en móvil */
@media (max-width: 767px) {

  /* Contenedor de las dos tarjetas: usa la columna que tienes en la captura */
  body.home .elementor-element-8850234 .card-body p,
  body.home .elementor-element-8850234 .card-body .description,
  body.home .elementor-element-8850234 .card-body .card-text {
    display: none !important;
  }

  /* Opcional: hacer las tarjetas un poco más bajitas y compactas */
  body.home .elementor-element-8850234 .card-body {
    padding-top: 1.2rem !important;
    padding-bottom: 1.4rem !important;
  }
}


