﻿/* =========================================================================
 * Web3s Theme - assets/css/responsive.css
 * Mobile & Tablet Responsive + Mobile Bottom Navigation Bar
 * ========================================================================= */

/* Mobile Bottom Navigation Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.06);
  z-index: 9990;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-bar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  border: none;
  background: none;
  cursor: pointer;
  padding: 4px 0;
  transition: all 0.2s ease;
}
.mobile-bar-btn .dashicons, .mobile-bar-btn svg {
  font-size: 20px;
  width: 20px;
  height: 20px;
  margin-bottom: 2px;
}
.mobile-bar-btn.active, .mobile-bar-btn:hover {
  color: var(--primary, #e4342b);
}
.mobile-bar-call {
  color: #f97316;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: -290px;
  width: 280px;
  height: 100%;
  background: #fff;
  z-index: 10000;
  box-shadow: 5px 0 25px rgba(0,0,0,0.15);
  transition: left 0.3s ease;
  overflow-y: auto;
  padding: 20px;
}
.mobile-nav-drawer.open {
  left: 0;
}
.mobile-nav-close {
  background: none;
  border: none;
  font-size: 28px;
  float: right;
  cursor: pointer;
  margin-top: -10px;
}
.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 30px 0 20px;
}
.mobile-nav-list li a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 600;
  font-size: 15px;
}
.mobile-cat-list {
  border-top: 2px solid #e2e8f0;
  padding-top: 15px;
}
.mobile-cat-list strong {
  display: block;
  margin-bottom: 10px;
  color: #1a1a2e;
}
.mobile-cat-list ul {
  list-style: none;
  padding-left: 10px;
  margin: 0;
}
.mobile-cat-list li a {
  display: block;
  padding: 6px 0;
  font-size: 13px;
}

.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9995;
}

/* Tablet: max-width 992px */
@media (max-width: 992px) {
  .header-main-inner {
    flex-wrap: wrap;
    gap: 15px;
  }
  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .web3s-features-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .single-product-layout {
    grid-template-columns: 1fr;
  }
  .web3s-checkout-wrap {
    grid-template-columns: 1fr;
  }
}

/* Mobile: max-width 768px */
@media (max-width: 768px) {
  body {
    padding-bottom: 65px; /* space for mobile bottom bar */
  }
  .mobile-bottom-bar {
    display: flex;
  }
  .top-bar {
    display: none;
  }
  .header-bottom-nav {
    display: none;
  }
  .hamburger-btn {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .web3s-features-row {
    grid-template-columns: 1fr;
  }
  .taxonomy-layout {
    display: block;
  }
  .category-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 270px;
    height: 100%;
    background: #fff;
    z-index: 10000;
    padding: 20px;
    overflow-y: auto;
    box-shadow: 5px 0 25px rgba(0,0,0,0.15);
    transition: left 0.3s ease;
  }
  .category-sidebar.open {
    left: 0;
  }
  .sidebar-close {
    display: block;
    background: none;
    border: none;
    font-size: 26px;
    float: right;
    cursor: pointer;
  }
  .product-cta-buttons {
    flex-direction: column;
  }
}
