/* ── Mobile Navigation ── */

/* Show hamburger only on mobile */
.mobile-nav-toggler {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background .2s;
  margin-left: auto;
}
.mobile-nav-toggler:hover { background: rgba(255,107,43,0.08); }
.mobile-nav-toggler .icon-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #1a1a2e;
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
/* Hamburger → X animation */
.mobile-nav-toggler.open .icon-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-nav-toggler.open .icon-bar:nth-child(2) { opacity: 0; }
.mobile-nav-toggler.open .icon-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  /* Show hamburger */
  .mobile-nav-toggler { display: flex; }

  /* Hide desktop nav by default */
  .main-menu .navigation.clearfix {
    display: none !important;
    flex-direction: column !important;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 20px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-top: 2px solid #FF6B2B;
    z-index: 999;
    gap: 0;
  }

  /* Show when open */
  .main-menu .navigation.clearfix.nav-open {
    display: flex !important;
  }

  .main-menu .navigation.clearfix li {
    width: 100%;
    border-bottom: 1px solid #f0ede8;
  }
  .main-menu .navigation.clearfix li:last-child { border-bottom: none; }

  .main-menu .navigation.clearfix li a {
    display: block;
    padding: 14px 8px;
    font-family: 'Fredoka One', cursive;
    font-size: 18px;
    color: #1a1a2e;
    text-decoration: none;
  }
  .main-menu .navigation.clearfix li a:hover,
  .main-menu .navigation.clearfix li.current a {
    color: #FF6B2B;
  }

  /* Hide desktop menu wrapper collapse */
  .collapse.navbar-collapse {
    position: relative;
  }

  /* Compact header on mobile */
  .main-header .outer-box {
    flex-wrap: wrap;
    gap: 8px;
  }

  .support-box { display: none; }

  .menu-area {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
  }

  /* Header top: single line */
  .header-top .top-inner {
    flex-wrap: wrap;
    gap: 4px;
  }
  .header-top .info-list {
    flex-wrap: wrap;
    gap: 8px;
  }
  .header-top .text { display: none; }
}

@media (max-width: 480px) {
  .main-header .outer-box { padding: 10px 0; }
  .logo-box a span { font-size: 22px !important; }
  .logo-box svg { width: 36px !important; height: 36px !important; }
}

/* ── Footer Responsive ── */
@media (max-width: 768px) {
  /* Footer 3-col grid → 1 col */
  footer .large-container div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }

  /* Footer WhatsApp CTA */
  footer div[style*="background:#FF6B2B"] p {
    font-size: 18px !important;
  }
  footer div[style*="background:#FF6B2B"] a {
    font-size: 16px !important;
    padding: 11px 22px !important;
  }

  /* Footer body padding */
  footer .large-container {
    padding-top: 36px !important;
    padding-bottom: 28px !important;
  }

  /* Footer text center on mobile */
  footer .large-container div[style*="grid-template-columns"] > div {
    text-align: center;
  }
  footer .large-container div[style*="grid-template-columns"] > div ul li {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  footer div[style*="background:#FF6B2B"] {
    padding: 20px 16px !important;
  }
}
/* ── Producto Detail Responsive ── */
@media (max-width: 768px) {
  /* Remove padding-left that breaks mobile layout */
  .shop-page-section .row .col-lg-6[style*="padding-left"] {
    padding-left: 0 !important;
    padding-top: 24px !important;
  }

  /* Fix Bootstrap row float issues on mobile */
  .shop-page-section .row.clearfix {
    display: flex !important;
    flex-direction: column !important;
  }

  .shop-page-section .row.clearfix .col-lg-6 {
    width: 100% !important;
    float: none !important;
  }

  /* WhatsApp button full width */
  .wa-btn, a[href*="wa.me"].wa-btn {
    width: 100% !important;
    justify-content: center !important;
    font-size: 17px !important;
    padding: 14px 20px !important;
    box-sizing: border-box !important;
  }

  /* Product title size */
  .prod-title, h1.prod-title {
    font-size: 24px !important;
  }

  /* Thumbnail gallery */
  .det-gallery {
    gap: 8px !important;
  }
  .det-thumb {
    width: 60px !important;
    height: 60px !important;
  }

  /* Main image */
  .main-det-img, .main-img {
    max-height: 280px !important;
  }

  /* Description box */
  .desc-box {
    margin-top: 16px !important;
  }
}
/* ── Producto grid mobile: 2 cols → 1 col ── */
@media (max-width: 768px) {
  #skeleton,
  #product-content {
    grid-template-columns: 1fr !important;
  }
  #product-content > div:last-child {
    padding-top: 0 !important;
  }
}