/* =====================================================
   Fix: Logo size + Mobile category strip
===================================================== */

/* ---- LOGO: Reduce size on desktop ---- */
.site-logo img.logo-main,
.site-logo img.logo-white {
  height: 52px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
}

.site-logo .logo-text .logo-name {
  font-size: 1rem !important;
}

/* ---- LOGO: Even smaller on tablet ---- */
@media (max-width: 1100px) {
  .site-logo img.logo-main,
  .site-logo img.logo-white {
    height: 46px !important;
  }
}

/* ---- LOGO: Mobile ---- */
@media (max-width: 768px) {
  .site-logo img.logo-main,
  .site-logo img.logo-white {
    height: 38px !important;
    max-width: 150px !important;
  }
}

/* =====================================================
   Fix: Mobile Products Page — Category Strip
   The injected strip was rendering unstyled
===================================================== */
@media (max-width: 768px) {

  /* Hide the old sidebar categories box entirely on mobile products page */
  .products-section aside {
    display: none !important;
  }

  /* ---- Injected category chip strip ---- */
  #mobileCatStrip {
    display: flex !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 8px !important;
    padding: 12px 16px !important;
    background: #fff !important;
    border-bottom: 1px solid #E5E7EB !important;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
  }

  #mobileCatStrip::-webkit-scrollbar { display: none !important; }

  #mobileCatStrip a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 7px 14px !important;
    background: #F3F4F6 !important;
    border: 2px solid transparent !important;
    border-radius: 50px !important;
    font-size: .8rem !important;
    font-weight: 600 !important;
    color: #374151 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    transition: all .15s !important;
  }

  #mobileCatStrip a.active,
  #mobileCatStrip a:active {
    background: #E8F5E9 !important;
    color: #1B5E20 !important;
    border-color: #1B5E20 !important;
  }

  #mobileCatStrip a i {
    font-size: .82rem !important;
    color: #1B5E20 !important;
  }

  /* ---- Products page main area fills full width without sidebar ---- */
  .products-section .container > div[style*="flex"],
  .products-section .container > div[style*="display:flex"] {
    display: block !important;
  }

  .products-section .container > div > div[style*="flex:1"] {
    width: 100% !important;
  }
}
