/* ... existing styles ... */

/* MOBILE APP STYLES */

/* Mobile Header */
.mobile-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  padding: 0 15px;
}

.mobile-header-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-location {
  position: relative;
}

.location-btn {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  color: #333;
}

.location-btn .location-text {
  margin: 0 6px;
  font-weight: 600;
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-location-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 8px;
  margin-top: 8px;
  min-width: 150px;
  z-index: 1001;
  overflow: hidden;
}

.mobile-location-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 15px;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-location-dropdown button:last-child {
  border-bottom: none;
}

/* Mobile Bottom Nav */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #999;
  font-size: 10px;
  width: 25%;
  height: 100%;
}

.mobile-nav-item.active {
  color: #d11243;
}

.mobile-nav-item .icon-wrapper {
  position: relative;
  margin-bottom: 2px;
}

.mobile-nav-item .nav-badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: #d11243;
  color: #fff;
  font-size: 9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Mobile Product Grid (2 columns) */
@media only screen and (max-width: 767px) {
  .items {
      display: flex;
      flex-wrap: wrap;
      margin: 0 -5px !important;
      padding: 0 10px !important;
  }

  .items > div {
      width: 50%;
      padding: 0 5px;
      margin-bottom: 10px;
  }
  
  /* Reset previous styles that might conflict */
  .col-md-3, .col-sm-12, .col-xs-12 {
      width: 50%; 
      float: left;
  }
  
  /* Special handling for category headers which are also col-md-12 */
  .sellars-heading .col-md-12 {
      width: 100%;
  }
  
  /* Reset for full width containers */
  .col-md-12 {
      width: 100%;
  }

  /* Product Card Mobile Tweaks */
  .product-card {
      padding: 10px !important;
      min-height: 260px;
  }
  
  .product-card img {
      height: 120px !important;
  }
  
  .product-card h3 {
      font-size: 13px !important;
      min-height: 36px !important;
      margin-bottom: 5px !important;
  }
  
  .product-card .price-info span {
      font-size: 14px !important;
  }
  
  .add-cart-button {
      padding: 6px 10px !important;
      font-size: 10px !important;
  }

  /* Hide original header elements just in case */
  .top-header, .second-header, .search {
      display: none !important;
  }
}
